docs: update get_state and set_state references (#1306)

This commit is contained in:
Maxi Fernandez 2025-07-31 12:04:28 -03:00 committed by GitHub
commit 845546c53f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -45,8 +45,8 @@ def my_tool(x: int, ctx: Context) -> str:
client_id = ctx.client_id
# Manage state across the request
ctx.set_state_value("key", "value")
value = ctx.get_state_value("key")
ctx.set_state("key", "value")
value = ctx.get_state("key")
return str(x)
```