rosetta-ai 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3116,13 +3116,10 @@ const PromptlUserMessageSchema = BaseMessageSchema.extend({
3116
3116
  /** Assistant message in Promptl format.
3117
3117
  * Content can be a string, array of tool call content, or array of any content.
3118
3118
  * Also supports a separate toolCalls array and streaming flag. */
3119
- const PromptlAssistantMessageSchema = zod.z
3120
- .object({
3119
+ const PromptlAssistantMessageSchema = BaseMessageSchema.extend({
3121
3120
  role: zod.z.literal("assistant"),
3122
- content: zod.z.union([zod.z.string(), zod.z.array(PromptlContentSchema)]),
3123
3121
  toolCalls: zod.z.array(PromptlToolCallSchema).nullable().optional(),
3124
- })
3125
- .passthrough();
3122
+ });
3126
3123
  /** Tool message in Promptl format.
3127
3124
  * Supports both legacy format (toolName/toolId at message level) and new format (tool-result in content). */
3128
3125
  const PromptlToolMessageSchema = zod.z