Skip to content

docs: update TypeScript snippets for StateStore and appState rename#675

Merged
pgrayy merged 2 commits intostrands-agents:mainfrom
pgrayy:agent-tasks/rename-state-to-app-state
Mar 18, 2026
Merged

docs: update TypeScript snippets for StateStore and appState rename#675
pgrayy merged 2 commits intostrands-agents:mainfrom
pgrayy:agent-tasks/rename-state-to-app-state

Conversation

@pgrayy
Copy link
Copy Markdown
Member

@pgrayy pgrayy commented Mar 18, 2026

Description

Updates TypeScript code snippets to reflect the SDK rename of AppState to StateStore and Agent.state to Agent.appState.

AppState was renamed to StateStore since it is a general-purpose key-value store, not limited to application-level state. Agent.state was renamed to Agent.appState to clarify that this state is for application/user data. The Agent itself does not touch it. It is for users who want to store information between invocations and for reference in plugins and tools.

Changes across 5 files:

  • state.ts: all agent.state references updated to agent.appState, config state: updated to appState:
  • tools.ts: context.agent.state updated to context.agent.appState
  • plugins/index.ts: agent.state updated to agent.appState in the MetricsPlugin example
  • custom-tools.mdx: prose reference context.agent.state updated to context.agent.appState
  • multi-agent-patterns.mdx: AppState updated to StateStore in prose

Python code in MDX files is unchanged (Python SDK still uses agent.state).

Related Issues

Companion to strands-agents/sdk-typescript PR for the rename.

Type of Change

  • Content update/revision

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using npm run dev
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 18, 2026

Documentation Preview Ready

Your documentation preview has been successfully deployed!

Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-675/docs/user-guide/quickstart/overview/

Updated at: 2026-03-18T16:24:45.110Z

@pgrayy pgrayy merged commit 9ba9f43 into strands-agents:main Mar 18, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants