We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0708891 commit 0da2cc5Copy full SHA for 0da2cc5
packages/agent/src/core/llm/providers/anthropic.ts
@@ -81,9 +81,11 @@ export class AnthropicProvider implements LLMProvider {
81
if (functions && functions.length > 0) {
82
(requestOptions as any).tools = functions.map(fn => ({
83
type: 'custom',
84
- name: fn.name,
85
- description: fn.description,
86
- input_schema: fn.parameters,
+ custom: {
+ name: fn.name,
+ description: fn.description,
87
+ input_schema: fn.parameters,
88
+ }
89
}));
90
}
91
0 commit comments