Skip to content

Commit 193bb38

Browse files
committed
allow AudioContent in ToolResultContent.content
1 parent 27d36a1 commit 193bb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ export const ToolChoiceSchema = z
12191219
export const ToolResultContentSchema = z.object({
12201220
type: z.literal("tool_result"),
12211221
toolUseId: z.string().describe("The unique identifier for the corresponding tool call."),
1222-
content: z.array(z.union([TextContentSchema, ImageContentSchema])),
1222+
content: z.array(z.union([TextContentSchema, ImageContentSchema, AudioContentSchema])),
12231223
structuredContent: z.object({}).passthrough().optional(),
12241224
isError: z.optional(z.boolean()),
12251225
})

0 commit comments

Comments
 (0)