docs: update TypeScript snippets for StateStore and appState rename#675
Merged
pgrayy merged 2 commits intostrands-agents:mainfrom Mar 18, 2026
Merged
Conversation
….state to agent.appState rename
Contributor
Documentation Preview ReadyYour 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 |
7 tasks
…ent-tasks/rename-state-to-app-state
mehtarac
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates TypeScript code snippets to reflect the SDK rename of
AppStatetoStateStoreandAgent.statetoAgent.appState.AppStatewas renamed toStateStoresince it is a general-purpose key-value store, not limited to application-level state.Agent.statewas renamed toAgent.appStateto 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: allagent.statereferences updated toagent.appState, configstate:updated toappState:tools.ts:context.agent.stateupdated tocontext.agent.appStateplugins/index.ts:agent.stateupdated toagent.appStatein the MetricsPlugin examplecustom-tools.mdx: prose referencecontext.agent.stateupdated tocontext.agent.appStatemulti-agent-patterns.mdx:AppStateupdated toStateStorein prosePython 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
Checklist
npm run devBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.