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 482a9ac commit 9e75efaCopy full SHA for 9e75efa
docs/src/content/docs/guides/quickstart.mdx
@@ -85,13 +85,8 @@ const historyFunFact = tool({
85
name: 'history_fun_fact',
86
// The description is used to describe **when** to use the tool by telling it **what** it does.
87
description: 'Give a fun fact about a historical event',
88
- // This agent takes no parameters, so we provide an empty JSON schema.
89
- parameters: {
90
- type: 'object',
91
- properties: {},
92
- required: [],
93
- additionalProperties: false
94
- },
+ // This tool takes no parameters, so we provide an empty Zod Object.
+ parameters: z.object({}),
95
execute: async () => {
96
// The output will be returned back to the Agent to use
97
return 'Sharks are older than trees.';
0 commit comments