RunnableConfig#

class langchain_core.runnables.config.RunnableConfig[source]#

Configuration for a Runnable.

tags: List[str]#

Tags for this call and any sub-calls (eg. a Chain calling an LLM). You can use these to filter calls.

metadata: Dict[str, Any]#

Metadata for this call and any sub-calls (eg. a Chain calling an LLM). Keys should be strings, values should be JSON-serializable.

callbacks: List | Any | None#

Callbacks for this call and any sub-calls (eg. a Chain calling an LLM). Tags are passed to all callbacks, metadata is passed to handle*Start callbacks.

run_name: str#

Name for the tracer run for this call. Defaults to the name of the class.

max_concurrency: int | None#

Maximum number of parallel calls to make. If not provided, defaults to ThreadPoolExecutor’s default.

recursion_limit: int#

Maximum number of times a call can recurse. If not provided, defaults to 25.

configurable: Dict[str, Any]#

Runtime values for attributes previously made configurable on this Runnable, or sub-Runnables, through .configurable_fields() or .configurable_alternatives(). Check .output_schema() for a description of the attributes that have been made configurable.

run_id: UUID | None#

Unique identifier for the tracer run for this call. If not provided, a new UUID will be generated.

Examples using RunnableConfig