Skip to content

Commit 1079d1e

Browse files
authored
Update quickstart.mdx
The given example doesn’t work anymore because the “parameters” field is now required.
1 parent 07939c0 commit 1079d1e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ 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+
}
8895
execute: async () => {
8996
// The output will be returned back to the Agent to use
9097
return 'Sharks are older than trees.';

0 commit comments

Comments
 (0)