René's URL Explorer Experiment


Title: offload | deepagents_code | LangChain Reference

Open Graph Title: offload | deepagents_code

X Title: offload | deepagents_code

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

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

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

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

direct link

Domain: reference.langchain.com

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

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
attributeloggerhttps://reference.langchain.com/python/deepagents-code/offload/logger
functioncreate_modelCreate a chat model. Uses init_chat_model for standard providers, or imports a custom BaseChatModel subclass when the provider has a class_path in config. Supports provider:model format (e.g., 'openai:gpt-5.5') for explicit provider selection, or bare model names for auto-detection.https://reference.langchain.com/python/deepagents-code/config/create_model
functionformat_token_countFormat a token count into a human-readable short string.https://reference.langchain.com/python/deepagents-code/_session_stats/format_token_count
functionformat_offload_limitFormat offload retention settings into a human-readable limit string.https://reference.langchain.com/python/deepagents-code/offload/format_offload_limit
functionoffload_messages_to_backendWrite messages to backend storage before offloading. Appends messages as a timestamped markdown section to the conversation history file, matching the SummarizationMiddleware offload pattern. Filters out prior summary messages using the middleware's _filter_summary_messages to avoid storing summaries-of-summaries.https://reference.langchain.com/python/deepagents-code/offload/offload_messages_to_backend
functionperform_offloadExecute the offload workflow: summarize old messages and free context.https://reference.langchain.com/python/deepagents-code/offload/perform_offload
classOffloadResultSuccessful offload result.https://reference.langchain.com/python/deepagents-code/offload/OffloadResult
classOffloadThresholdNotMetOffload was a no-op — conversation is within the retention budget.https://reference.langchain.com/python/deepagents-code/offload/OffloadThresholdNotMet
classOffloadModelErrorRaised when the model cannot be created for offloading.https://reference.langchain.com/python/deepagents-code/offload/OffloadModelError
View source on GitHubhttps://github.com/langchain-ai/deepagents/blob/019900734024a7665fd65bd75235c6307d5da003/libs/code/deepagents_code/offload.py

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


URLs of crawlers that visited me.