Skip to content

Commit f3fa06b

Browse files
authored
fix(genkit-tool/common): fixed ToolResponse interface naming typo (#3889)
1 parent be901a9 commit f3fa06b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

genkit-tools/common/src/types/parts.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ const ToolResponseSchemaBase = z.object({
115115
/**
116116
* Tool response part.
117117
*/
118-
export type ToolResponsePart = z.infer<typeof ToolResponseSchemaBase> & {
118+
export type ToolResponse = z.infer<typeof ToolResponseSchemaBase> & {
119119
content?: Part[];
120120
};
121121

122-
export const ToolResponseSchema: z.ZodType<ToolResponsePart> =
122+
export const ToolResponseSchema: z.ZodType<ToolResponse> =
123123
ToolResponseSchemaBase.extend({
124124
content: z.array(z.any()).optional(),
125125
// TODO: switch to this once we have effective recursive schema support across the board.
@@ -134,6 +134,8 @@ export const ToolResponsePartSchema = EmptyPartSchema.extend({
134134
toolResponse: ToolResponseSchema,
135135
});
136136

137+
export type ToolResponsePart = z.infer<typeof ToolResponsePartSchema>;
138+
137139
/**
138140
* Zod schema of a data part.
139141
*/

0 commit comments

Comments
 (0)