runnables.utils.gather_with_concurrency(n, ...)
Gather coroutines with a limit on the number of concurrent coroutines.
runnables.utils.get_function_first_arg_dict_keys(func)
Get the keys of the first argument of a function if it is a dict.
runnables.utils.get_lambda_source(func)
Get the source code of a lambda function.
runnables.utils.get_unique_config_specs(specs)
Get the unique config specs from a sequence of config specs.
runnables.utils.indent_lines_after_first(...)
Indent all lines of text after the first line.
langchain_core.stores¶
Classes¶
stores.BaseStore()
Abstract interface for a key-value store.
langchain_core.tools¶
Base implementation for tools or skills.
Classes¶
tools.BaseTool
Interface LangChain tools must implement.
tools.SchemaAnnotationError
Raised when 'args_schema' is missing or has an incorrect type annotation.
tools.StructuredTool
Tool that can operate on any number of inputs.
tools.Tool
Tool that takes in function or coroutine directly.
tools.ToolException
An optional exception that tool throws when execution error occurs.
Functions¶
tools.create_schema_from_function(...)
Create a pydantic schema from a function's signature.
tools.tool(*args[, return_direct, ...])
Make tools out of functions, can be used with or without arguments.
langchain_core.tracers¶
Classes¶
tracers.base.BaseTracer(**kwargs)
Base interface for tracers.
tracers.evaluation.EvaluatorCallbackHandler(...)
A tracer that runs a run evaluator whenever a run is persisted.
tracers.langchain.LangChainTracer([...])
An implementation of the SharedTracer that POSTS to the langchain endpoint.
tracers.langchain_v1.LangChainTracerV1(**kwargs)