Skip to content

Commit e07ac8e

Browse files
TimonBerlinseratch
andauthored
Update quickstart.mdx - outdated example for tool call. (#192)
* Update quickstart.mdx The given example doesn’t work anymore because the “parameters” field is now required. * Update docs/src/content/docs/guides/quickstart.mdx Co-authored-by: Kazuhiro Sera <[email protected]> * Update quickstart.mdx --------- Co-authored-by: Kazuhiro Sera <[email protected]>
1 parent 07939c0 commit e07ac8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +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 tool takes no parameters, so we provide an empty Zod Object.
89+
parameters: z.object({}),
8890
execute: async () => {
8991
// The output will be returned back to the Agent to use
9092
return 'Sharks are older than trees.';

0 commit comments

Comments
 (0)