Skip to content

Commit

Permalink
Restrict tool name
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Jul 19, 2024
1 parent 7be3625 commit ec5005a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/interfaces/ai/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ type ToolHandlerInput<T> = {
export type Tool<T> = {
description: string;
handler: (input: ToolHandlerInput<T>) => Promise<any>;
name: string;
name: "generate_image" | "overwrite_memory" | "new_thread";
parametersSchema: z.ZodType<T>;
};

0 comments on commit ec5005a

Please sign in to comment.