Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home 🦜🔗 LangChain  documentation - Home
  • Reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
    • agents
    • beta
      • Context
      • ContextGet
      • ContextSet
      • PrefixContext
      • aconfig_with_context
      • config_with_context
    • caches
    • callbacks
    • chat_history
    • chat_loaders
    • chat_sessions
    • document_loaders
    • documents
    • embeddings
    • example_selectors
    • exceptions
    • globals
    • indexing
    • language_models
    • load
    • messages
    • output_parsers
    • outputs
    • prompt_values
    • prompts
    • rate_limiters
    • retrievers
    • runnables
    • stores
    • structured_query
    • sys_info
    • tools
    • tracers
    • utils
    • vectorstores
  • Langchain
  • Text Splitters
  • Community
  • Experimental

Integrations

  • AI21
  • Anthropic
  • AstraDB
  • AWS
  • Azure Ai
  • Azure Dynamic Sessions
  • Cerebras
  • Chroma
  • Cohere
  • Deepseek
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • IBM
  • Milvus
  • MistralAI
  • MongoDB
  • Neo4J
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Perplexity
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Redis
  • Sema4
  • Snowflake
  • Sqlserver
  • Standard Tests
  • Tavily
  • Together
  • Unstructured
  • Upstage
  • VoyageAI
  • Weaviate
  • XAI
  • LangChain Python API Reference
  • langchain-core: 0.3.59
  • beta
  • aconfig_with_context

aconfig_with_context#

langchain_core.beta.runnables.context.aconfig_with_context(
config: RunnableConfig,
steps: list[Runnable],
) → RunnableConfig[source]#

Asynchronously patch a runnable config with context getters and setters.

Parameters:
  • config (RunnableConfig) – The runnable config.

  • steps (list[Runnable]) – The runnable steps.

Returns:

The patched runnable config.

Return type:

RunnableConfig

On this page
  • aconfig_with_context()

© Copyright 2025, LangChain Inc.