René's URL Explorer Experiment


Title: state_migration | deepagents_code | LangChain Reference

Open Graph Title: state_migration | deepagents_code

X Title: state_migration | deepagents_code

Description: Python API reference for state_migration in deepagents_code. Part of the LangChain ecosystem.

Open Graph Description: Python API reference for state_migration in deepagents_code. Part of the LangChain ecosystem.

X Description: Python API reference for state_migration in deepagents_code. Part of the LangChain ecosystem.

Opengraph URL: https://reference.langchain.com/python/deepagents-code/state_migration

direct link

Domain: reference.langchain.com

og:imagehttps://reference.langchain.com/og/python/deepagents-code/state_migration
og:image:width1200
og:image:height630
og:image:altstate_migration | deepagents_code
og:typearticle
twitter:cardsummary_large_image
twitter:imagehttps://reference.langchain.com/og/python/deepagents-code/state_migration

Links:

LangChain Reference home pagehttps://reference.langchain.com/
GitHubhttps://github.com/langchain-ai
Main Docshttps://docs.langchain.com/oss/python/deepagents
Deep Agentshttps://reference.langchain.com/python/deepagents
LangChainhttps://reference.langchain.com/python/langchain/overview
LangGraphhttps://reference.langchain.com/python/langgraph/overview
Integrationshttps://reference.langchain.com/python/integrations/overview
LangSmithhttps://reference.langchain.com/python/langsmith
Deep Agents Codehttps://reference.langchain.com/python/deepagents-code
Deep Agents Codehttps://reference.langchain.com/python/deepagents-code
deepagents-codehttps://reference.langchain.com/python/deepagents-code
attributeDEFAULT_CONFIG_DIRDirectory for user-level Deep Agents configuration (~/.deepagents).https://reference.langchain.com/python/deepagents-code/model_config/DEFAULT_CONFIG_DIR
attributeDEFAULT_STATE_DIRDirectory for app-managed internal state (~/.deepagents/.state). Holds files the app writes for its own bookkeeping — OAuth tokens, the sessions database, version-check caches, input history. Kept separate from top-level user-facing config and agent directories so listing/iterating ~/.deepagents doesn't conflate state with agents.https://reference.langchain.com/python/deepagents-code/model_config/DEFAULT_STATE_DIR
attributeONBOARDING_MARKER_FILENAME: strMarker filename under ~/.deepagents/.state after onboarding has completed.https://reference.langchain.com/python/deepagents-code/onboarding/ONBOARDING_MARKER_FILENAME
attributeloggerhttps://reference.langchain.com/python/deepagents-code/state_migration/logger
functionmigrate_legacy_stateMove legacy state entries from config_dir into state_dir. Idempotent: each entry is skipped when the destination already exists (the migration ran on a prior invocation) or when the source does not exist (nothing to move). Errors on individual entries are logged and swallowed so a single unmovable file does not block the rest.https://reference.langchain.com/python/deepagents-code/state_migration/migrate_legacy_state
View source on GitHubhttps://github.com/langchain-ai/deepagents/blob/019900734024a7665fd65bd75235c6307d5da003/libs/code/deepagents_code/state_migration.py

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.