fix: Tool calls for trip planner

This commit is contained in:
bracesproul
2025-03-06 11:42:39 -08:00
parent 098d954d06
commit 60ba2a11c1
4 changed files with 57 additions and 67 deletions

View File

@@ -10,5 +10,5 @@ interface ToolCall {
export function findToolCall<Name extends string>(name: Name) {
return <Args extends ZodTypeAny>(
x: ToolCall,
): x is { name: Name; args: z.infer<Args> } => x.name === name;
): x is { name: Name; args: z.infer<Args>; id?: string } => x.name === name;
}