Skip to content

Commit 9e75efa

Browse files
authored
Update quickstart.mdx
1 parent 482a9ac commit 9e75efa

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/src/content/docs/guides/quickstart.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,8 @@ const historyFunFact = tool({
8585
name: 'history_fun_fact',
8686
// The description is used to describe **when** to use the tool by telling it **what** it does.
8787
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-
},
88+
// This tool takes no parameters, so we provide an empty Zod Object.
89+
parameters: z.object({}),
9590
execute: async () => {
9691
// The output will be returned back to the Agent to use
9792
return 'Sharks are older than trees.';

0 commit comments

Comments
 (0)