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 7215940 commit 34bdedcCopy full SHA for 34bdedc
src/content/docs/agents/api-reference/calling-agents.mdx
@@ -97,7 +97,7 @@ export default {
97
let chatResponse = namedAgent.chat('Hello!');
98
// No need to serialize/deserialize it from a HTTP request or WebSocket
99
// message and back again
100
- let agentState = getState() // agentState is of type UserHistory
+ let agentState = namedAgent.getState() // agentState is of type UserHistory
101
return namedResp
102
},
103
} satisfies ExportedHandler<Env>;
0 commit comments