Skip to content

Commit 34bdedc

Browse files
authored
Fix calling-agents.mdx code example
1 parent 7215940 commit 34bdedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/agents/api-reference/calling-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default {
9797
let chatResponse = namedAgent.chat('Hello!');
9898
// No need to serialize/deserialize it from a HTTP request or WebSocket
9999
// message and back again
100-
let agentState = getState() // agentState is of type UserHistory
100+
let agentState = namedAgent.getState() // agentState is of type UserHistory
101101
return namedResp
102102
},
103103
} satisfies ExportedHandler<Env>;

0 commit comments

Comments
 (0)