# LangChain API Reference - Full Symbol Index > Complete listing of all symbols from LangChain Python and JavaScript packages. > Each link points to the markdown version of the symbol documentation. Notes: - Click any symbol link to get detailed markdown documentation - Symbols are grouped by package and kind (class, function, etc.) - This file may be truncated; use individual package pages for complete details --- ## Python Packages ### langchain #### Attributes - [action_name](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ReviewConfig/action_name.md) (attribute): Name of the action associated with this review configuration. - [action_requests](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLRequest/action_requests.md) (attribute): A list of agent actions for human review. - [ai_message](https://reference.langchain.com/python/langchain/agents/structured_output/StructuredOutputError/ai_message.md) (attribute) - [ai_message](https://reference.langchain.com/python/langchain/agents/structured_output/MultipleStructuredOutputsError/ai_message.md) (attribute) - [ai_message](https://reference.langchain.com/python/langchain/agents/structured_output/StructuredOutputValidationError/ai_message.md) (attribute) - [allowed_decisions](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ReviewConfig/allowed_decisions.md) (attribute): The decisions that are allowed for this request. - [allowed_decisions](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/InterruptOnConfig/allowed_decisions.md) (attribute): The decisions that are allowed for this action. - [always_include](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware/always_include.md) (attribute) - [apply_to_input](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/apply_to_input.md) (attribute) - [apply_to_output](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/apply_to_output.md) (attribute) - [apply_to_tool_results](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/apply_to_tool_results.md) (attribute) - [args](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/Action/args.md) (attribute): Key-value pairs of args needed for the action (e.g., `{"a": 1, "b": 2}`). - [args](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ActionRequest/args.md) (attribute): Key-value pairs of args needed for the action (e.g., `{"a": 1, "b": 2}`). - [args_schema](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ReviewConfig/args_schema.md) (attribute): JSON schema for the args associated with the action, if edits are allowed. - [args_schema](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/InterruptOnConfig/args_schema.md) (attribute): JSON schema for the args associated with the action, if edits are allowed. - [available_tools](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/_SelectionRequest/available_tools.md) (attribute) - [backoff_factor](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/backoff_factor.md) (attribute) - [backoff_factor](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/backoff_factor.md) (attribute) - [binary](https://reference.langchain.com/python/langchain/agents/middleware/_execution/CodexSandboxExecutionPolicy/binary.md) (attribute) - [binary](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/binary.md) (attribute) - [BUILTIN_DETECTORS](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/BUILTIN_DETECTORS.md) (attribute): Registry of built-in detectors keyed by type name. - [CallableT](https://reference.langchain.com/python/langchain/agents/middleware/types/CallableT.md) (attribute) - [clear_at_least](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/clear_at_least.md) (attribute): Minimum number of tokens to reclaim when the edit runs. - [clear_tool_inputs](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/clear_tool_inputs.md) (attribute): Whether to clear the originating tool call parameters on the AI message. - [command](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_ShellToolInput/command.md) (attribute): The shell command to execute. - [command](https://reference.langchain.com/python/langchain/agents/middleware/types/ExtendedModelResponse/command.md) (attribute): Optional command to apply as an additional state update. - [command_timeout](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy/command_timeout.md) (attribute) - [commands](https://reference.langchain.com/python/langchain/agents/factory/_ComposedExtendedModelResponse/commands.md) (attribute): Commands accumulated from all middleware layers (inner-first, then outer). - [config_overrides](https://reference.langchain.com/python/langchain/agents/middleware/_execution/CodexSandboxExecutionPolicy/config_overrides.md) (attribute) - [content](https://reference.langchain.com/python/langchain/agents/middleware/todo/Todo/content.md) (attribute): The content/description of the todo item. - [ContextFraction](https://reference.langchain.com/python/langchain/agents/middleware/summarization/ContextFraction.md) (attribute): Fraction of model's maximum input tokens. - [ContextMessages](https://reference.langchain.com/python/langchain/agents/middleware/summarization/ContextMessages.md) (attribute): Absolute number of messages. - [ContextTokens](https://reference.langchain.com/python/langchain/agents/middleware/summarization/ContextTokens.md) (attribute): Absolute number of tokens. - [cpu_time_seconds](https://reference.langchain.com/python/langchain/agents/middleware/_execution/HostExecutionPolicy/cpu_time_seconds.md) (attribute) - [cpu_time_seconds](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/cpu_time_seconds.md) (attribute) - [cpus](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/cpus.md) (attribute) - [create_process_group](https://reference.langchain.com/python/langchain/agents/middleware/_execution/HostExecutionPolicy/create_process_group.md) (attribute) - [decisions](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLResponse/decisions.md) (attribute): The decisions made by the human. - [DecisionType](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/DecisionType.md) (attribute) - [DEFAULT_SUMMARY_PROMPT](https://reference.langchain.com/python/langchain/agents/middleware/summarization/DEFAULT_SUMMARY_PROMPT.md) (attribute) - [DEFAULT_SYSTEM_PROMPT](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/DEFAULT_SYSTEM_PROMPT.md) (attribute) - [DEFAULT_TOOL_DESCRIPTION](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/DEFAULT_TOOL_DESCRIPTION.md) (attribute) - [DEFAULT_TOOL_PLACEHOLDER](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/DEFAULT_TOOL_PLACEHOLDER.md) (attribute) - [description](https://reference.langchain.com/python/langchain/agents/structured_output/_SchemaSpec/description.md) (attribute): Custom description of the schema - [description](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ActionRequest/description.md) (attribute): The description of the action to be reviewed. - [description](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/InterruptOnConfig/description.md) (attribute): The description attached to the request for human input - [description_prefix](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HumanInTheLoopMiddleware/description_prefix.md) (attribute) - [detector](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/detector.md) (attribute) - [detector](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/RedactionRule/detector.md) (attribute) - [detector](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/ResolvedRedactionRule/detector.md) (attribute) - [Detector](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/Detector.md) (attribute): Callable signature for detectors that locate sensitive values. - [DYNAMIC_TOOL_ERROR_TEMPLATE](https://reference.langchain.com/python/langchain/agents/factory/DYNAMIC_TOOL_ERROR_TEMPLATE.md) (attribute) - [edited_action](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/EditDecision/edited_action.md) (attribute): Edited action for the agent to perform - [edits](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEditingMiddleware/edits.md) (attribute) - [emulate_all](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator/LLMToolEmulator/emulate_all.md) (attribute) - [end](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIMatch/end.md) (attribute) - [exclude_tools](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/exclude_tools.md) (attribute): List of tool names to exclude from clearing. - [exit_behavior](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/exit_behavior.md) (attribute) - [exit_behavior](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/exit_behavior.md) (attribute) - [exit_code](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/exit_code.md) (attribute) - [ExitBehavior](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ExitBehavior.md) (attribute): How to handle execution when tool call limits are exceeded - [extra_run_args](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/extra_run_args.md) (attribute) - [FALLBACK_MODELS_WITH_STRUCTURED_OUTPUT](https://reference.langchain.com/python/langchain/agents/factory/FALLBACK_MODELS_WITH_STRUCTURED_OUTPUT.md) (attribute) - [finalizer](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_SessionResources/finalizer.md) (attribute) - [glob_search](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/glob_search.md) (attribute) - [grep_search](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/grep_search.md) (attribute) - [handle_errors](https://reference.langchain.com/python/langchain/agents/structured_output/ToolStrategy/handle_errors.md) (attribute): Error handling strategy for structured output via `ToolStrategy` - [image](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/image.md) (attribute) - [initial_delay](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/initial_delay.md) (attribute) - [initial_delay](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/initial_delay.md) (attribute) - [input](https://reference.langchain.com/python/langchain/agents/middleware/types/OmitFromSchema/input.md) (attribute): Whether to omit the attribute from the input schema. - [InputType](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/InputType.md) (attribute): Get the input type for this `Runnable`. - [interrupt_on](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HumanInTheLoopMiddleware/interrupt_on.md) (attribute) - [jitter](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/jitter.md) (attribute) - [jitter](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/jitter.md) (attribute) - [json_schema](https://reference.langchain.com/python/langchain/agents/structured_output/_SchemaSpec/json_schema.md) (attribute): JSON schema associated with the schema. - [jump_to](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentState/jump_to.md) (attribute) - [JumpTo](https://reference.langchain.com/python/langchain/agents/middleware/types/JumpTo.md) (attribute): Destination to jump to when a middleware node returns. - [keep](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/keep.md) (attribute): Number of most recent tool results that must be preserved. - [keep](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/keep.md) (attribute) - [last_user_message](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/_SelectionRequest/last_user_message.md) (attribute) - [logger](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/logger.md) (attribute) - [LOGGER](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/LOGGER.md) (attribute) - [matches](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIDetectionError/matches.md) (attribute) - [max_delay](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/max_delay.md) (attribute) - [max_delay](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/max_delay.md) (attribute) - [max_file_size_bytes](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/max_file_size_bytes.md) (attribute) - [max_output_bytes](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy/max_output_bytes.md) (attribute) - [max_output_lines](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy/max_output_lines.md) (attribute) - [max_retries](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/max_retries.md) (attribute) - [max_retries](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/max_retries.md) (attribute) - [max_tools](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware/max_tools.md) (attribute) - [memory_bytes](https://reference.langchain.com/python/langchain/agents/middleware/_execution/HostExecutionPolicy/memory_bytes.md) (attribute) - [memory_bytes](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/memory_bytes.md) (attribute) - [message](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/RejectDecision/message.md) (attribute): The message sent to the model explaining why the action was rejected. - [messages](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/messages.md) (attribute) - [messages](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/messages.md) (attribute) - [messages](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentState/messages.md) (attribute) - [messages](https://reference.langchain.com/python/langchain/agents/middleware/types/_InputAgentState/messages.md) (attribute) - [messages](https://reference.langchain.com/python/langchain/agents/middleware/types/_OutputAgentState/messages.md) (attribute) - [model](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/model.md) (attribute) - [model](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/model.md) (attribute) - [model](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/model.md) (attribute) - [model](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/_SelectionRequest/model.md) (attribute) - [model](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware/model.md) (attribute) - [model](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator/LLMToolEmulator/model.md) (attribute) - [model_response](https://reference.langchain.com/python/langchain/agents/factory/_ComposedExtendedModelResponse/model_response.md) (attribute): The underlying model response. - [model_response](https://reference.langchain.com/python/langchain/agents/middleware/types/ExtendedModelResponse/model_response.md) (attribute): The underlying model response. - [model_settings](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/model_settings.md) (attribute) - [model_settings](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/model_settings.md) (attribute) - [models](https://reference.langchain.com/python/langchain/agents/middleware/model_fallback/ModelFallbackMiddleware/models.md) (attribute) - [name](https://reference.langchain.com/python/langchain/agents/structured_output/_SchemaSpec/name.md) (attribute): Name of the schema, used for tool calling - [name](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/Action/name.md) (attribute): The type or name of action being requested (e.g., `'add_numbers'`). - [name](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ActionRequest/name.md) (attribute): The name of the action being requested. - [name](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/name.md) (attribute): The name of the middleware instance - [name](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/name.md) (attribute): Name of the middleware. - [name](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/name.md) (attribute): The name of the middleware instance - [network_enabled](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/network_enabled.md) (attribute) - [OmitFromInput](https://reference.langchain.com/python/langchain/agents/middleware/types/OmitFromInput.md) (attribute): Annotation used to mark state attributes as omitted from input schema. - [OmitFromOutput](https://reference.langchain.com/python/langchain/agents/middleware/types/OmitFromOutput.md) (attribute): Annotation used to mark state attributes as omitted from output schema. - [on_failure](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/on_failure.md) (attribute) - [on_failure](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/on_failure.md) (attribute) - [output](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/output.md) (attribute) - [output](https://reference.langchain.com/python/langchain/agents/middleware/types/OmitFromSchema/output.md) (attribute): Whether to omit the attribute from the output schema. - [pii_type](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/pii_type.md) (attribute) - [pii_type](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIDetectionError/pii_type.md) (attribute) - [pii_type](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/RedactionRule/pii_type.md) (attribute) - [pii_type](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/ResolvedRedactionRule/pii_type.md) (attribute) - [placeholder](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/placeholder.md) (attribute): Placeholder text inserted for cleared tool outputs. - [platform](https://reference.langchain.com/python/langchain/agents/middleware/_execution/CodexSandboxExecutionPolicy/platform.md) (attribute) - [policy](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_SessionResources/policy.md) (attribute) - [PrivateStateAttr](https://reference.langchain.com/python/langchain/agents/middleware/types/PrivateStateAttr.md) (attribute): Annotation used to mark state attributes as purely internal for a given middleware. - [read_only_rootfs](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/read_only_rootfs.md) (attribute) - [RedactionStrategy](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/RedactionStrategy.md) (attribute): Supported strategies for handling detected sensitive values. - [remove_container_on_exit](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/remove_container_on_exit.md) (attribute) - [response_format](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/response_format.md) (attribute) - [response_format](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/response_format.md) (attribute) - [ResponseT](https://reference.langchain.com/python/langchain/agents/middleware/types/ResponseT.md) (attribute) - [restart](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_ShellToolInput/restart.md) (attribute): Whether to restart the shell session. - [result](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelResponse/result.md) (attribute): List of messages from model execution. - [retry_on](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/retry_on.md) (attribute) - [retry_on](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/retry_on.md) (attribute) - [review_configs](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLRequest/review_configs.md) (attribute): Review configuration for all possible actions. - [root_path](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/root_path.md) (attribute) - [run_count](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitExceededError/run_count.md) (attribute) - [run_count](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitExceededError/run_count.md) (attribute) - [run_limit](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitExceededError/run_limit.md) (attribute) - [run_limit](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/run_limit.md) (attribute) - [run_limit](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitExceededError/run_limit.md) (attribute) - [run_limit](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/run_limit.md) (attribute) - [run_model_call_count](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitState/run_model_call_count.md) (attribute) - [run_tool_call_count](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitState/run_tool_call_count.md) (attribute) - [runtime](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_ShellToolInput/runtime.md) (attribute): The runtime for the shell tool - [runtime](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/runtime.md) (attribute) - [schema](https://reference.langchain.com/python/langchain/agents/structured_output/_SchemaSpec/schema.md) (attribute): The schema for the response, can be a Pydantic model, `dataclass`, `TypedDict`, or JSON schema dict. - [schema](https://reference.langchain.com/python/langchain/agents/structured_output/ToolStrategy/schema.md) (attribute): Schema for the tool calls. - [schema](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategy/schema.md) (attribute): Schema for native mode. - [schema](https://reference.langchain.com/python/langchain/agents/structured_output/OutputToolBinding/schema.md) (attribute): The original schema provided for structured output (Pydantic model, dataclass, TypedDict, or JSON schema dict). - [schema](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategyBinding/schema.md) (attribute): The original schema provided for structured output (Pydantic model, `dataclass`, `TypedDict`, or JSON schema dict). - [schema](https://reference.langchain.com/python/langchain/agents/structured_output/AutoStrategy/schema.md) (attribute): Schema for automatic mode. - [schema_kind](https://reference.langchain.com/python/langchain/agents/structured_output/_SchemaSpec/schema_kind.md) (attribute): The kind of schema. - [schema_kind](https://reference.langchain.com/python/langchain/agents/structured_output/OutputToolBinding/schema_kind.md) (attribute): Classification of the schema type for proper response construction. - [schema_kind](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategyBinding/schema_kind.md) (attribute): Classification of the schema type for proper response construction. - [schema_spec](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategy/schema_spec.md) (attribute): Schema spec for native mode. - [schema_specs](https://reference.langchain.com/python/langchain/agents/structured_output/ToolStrategy/schema_specs.md) (attribute): Schema specs for the tool calls. - [SchemaKind](https://reference.langchain.com/python/langchain/agents/structured_output/SchemaKind.md) (attribute) - [SchemaT](https://reference.langchain.com/python/langchain/agents/structured_output/SchemaT.md) (attribute) - [session](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_SessionResources/session.md) (attribute) - [shell_session_resources](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolState/shell_session_resources.md) (attribute) - [SHELL_TEMP_PREFIX](https://reference.langchain.com/python/langchain/agents/middleware/_execution/SHELL_TEMP_PREFIX.md) (attribute) - [SHELL_TOOL_NAME](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/SHELL_TOOL_NAME.md) (attribute) - [source](https://reference.langchain.com/python/langchain/agents/structured_output/StructuredOutputValidationError/source.md) (attribute) - [start](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIMatch/start.md) (attribute) - [startup_timeout](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy/startup_timeout.md) (attribute) - [state](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/state.md) (attribute) - [state](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/state.md) (attribute) - [state_schema](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/state_schema.md) (attribute) - [state_schema](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/state_schema.md) (attribute): The schema for state passed to the middleware nodes. - [state_schema](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/state_schema.md) (attribute) - [state_schema](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/state_schema.md) (attribute) - [state_schema](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/state_schema.md) (attribute) - [StateT](https://reference.langchain.com/python/langchain/agents/middleware/types/StateT.md) (attribute) - [StateT_co](https://reference.langchain.com/python/langchain/agents/middleware/types/StateT_co.md) (attribute) - [StateT_contra](https://reference.langchain.com/python/langchain/agents/middleware/types/StateT_contra.md) (attribute) - [status](https://reference.langchain.com/python/langchain/agents/middleware/todo/Todo/status.md) (attribute): The current status of the todo item. - [strategy](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/strategy.md) (attribute) - [strategy](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/RedactionRule/strategy.md) (attribute) - [strategy](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/ResolvedRedactionRule/strategy.md) (attribute) - [strict](https://reference.langchain.com/python/langchain/agents/structured_output/_SchemaSpec/strict.md) (attribute): Whether to enforce strict validation of the schema. - [STRUCTURED_OUTPUT_ERROR_TEMPLATE](https://reference.langchain.com/python/langchain/agents/factory/STRUCTURED_OUTPUT_ERROR_TEMPLATE.md) (attribute) - [structured_response](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelResponse/structured_response.md) (attribute): Parsed structured output if `response_format` was specified, `None` otherwise. - [structured_response](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentState/structured_response.md) (attribute) - [structured_response](https://reference.langchain.com/python/langchain/agents/middleware/types/_OutputAgentState/structured_response.md) (attribute) - [summary_prompt](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/summary_prompt.md) (attribute) - [system_message](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/system_message.md) (attribute) - [system_message](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/system_message.md) (attribute) - [system_message](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/_SelectionRequest/system_message.md) (attribute) - [system_prompt](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/system_prompt.md) (attribute): Get system prompt text from system_message. - [system_prompt](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware/system_prompt.md) (attribute) - [system_prompt](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/system_prompt.md) (attribute) - [tempdir](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_SessionResources/tempdir.md) (attribute) - [termination_timeout](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy/termination_timeout.md) (attribute) - [thread_count](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitExceededError/thread_count.md) (attribute) - [thread_count](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitExceededError/thread_count.md) (attribute) - [thread_limit](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitExceededError/thread_limit.md) (attribute) - [thread_limit](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/thread_limit.md) (attribute) - [thread_limit](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitExceededError/thread_limit.md) (attribute) - [thread_limit](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/thread_limit.md) (attribute) - [thread_model_call_count](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitState/thread_model_call_count.md) (attribute) - [thread_tool_call_count](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitState/thread_tool_call_count.md) (attribute) - [timed_out](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/timed_out.md) (attribute) - [todos](https://reference.langchain.com/python/langchain/agents/middleware/todo/PlanningState/todos.md) (attribute): List of todo items for tracking task progress. - [todos](https://reference.langchain.com/python/langchain/agents/middleware/todo/WriteTodosInput/todos.md) (attribute) - [token_count_method](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEditingMiddleware/token_count_method.md) (attribute) - [token_counter](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/token_counter.md) (attribute) - [TokenCounter](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/TokenCounter.md) (attribute) - [TokenCounter](https://reference.langchain.com/python/langchain/agents/middleware/summarization/TokenCounter.md) (attribute) - [tool](https://reference.langchain.com/python/langchain/agents/structured_output/OutputToolBinding/tool.md) (attribute): LangChain tool instance created from the schema for model binding. - [tool_choice](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/tool_choice.md) (attribute) - [tool_choice](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/tool_choice.md) (attribute) - [tool_description](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/tool_description.md) (attribute) - [tool_message_content](https://reference.langchain.com/python/langchain/agents/structured_output/ToolStrategy/tool_message_content.md) (attribute): The content of the tool message to be returned when the model calls an artificial structured output tool. - [tool_name](https://reference.langchain.com/python/langchain/agents/structured_output/StructuredOutputValidationError/tool_name.md) (attribute) - [tool_name](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitExceededError/tool_name.md) (attribute) - [tool_name](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/tool_name.md) (attribute) - [tool_names](https://reference.langchain.com/python/langchain/agents/structured_output/MultipleStructuredOutputsError/tool_names.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/tools.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/tools.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/tools.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/types/_ModelRequestOverrides/tools.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/tools.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/tools.md) (attribute): Additional tools registered by the middleware. - [tools](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/tools.md) (attribute) - [tools](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/tools.md) (attribute) - [tools_to_emulate](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator/LLMToolEmulator/tools_to_emulate.md) (attribute) - [total_bytes](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/total_bytes.md) (attribute) - [total_lines](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/total_lines.md) (attribute) - [trigger](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/trigger.md) (attribute): Token count that triggers the edit. - [trigger](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/trigger.md) (attribute) - [trim_tokens_to_summarize](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/trim_tokens_to_summarize.md) (attribute) - [truncated_by_bytes](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/truncated_by_bytes.md) (attribute) - [truncated_by_lines](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult/truncated_by_lines.md) (attribute) - [type](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ApproveDecision/type.md) (attribute): The type of response when a human approves the action. - [type](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/EditDecision/type.md) (attribute): The type of response when a human edits the action. - [type](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/RejectDecision/type.md) (attribute): The type of response when a human rejects the action. - [type](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIMatch/type.md) (attribute) - [use_ripgrep](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/use_ripgrep.md) (attribute) - [user](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/user.md) (attribute) - [valid_tool_names](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/_SelectionRequest/valid_tool_names.md) (attribute) - [value](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIMatch/value.md) (attribute) - [WRITE_TODOS_SYSTEM_PROMPT](https://reference.langchain.com/python/langchain/agents/middleware/todo/WRITE_TODOS_SYSTEM_PROMPT.md) (attribute) - [WRITE_TODOS_TOOL_DESCRIPTION](https://reference.langchain.com/python/langchain/agents/middleware/todo/WRITE_TODOS_TOOL_DESCRIPTION.md) (attribute) #### Classs - [Action](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/Action.md) (class): Represents an action with a name and args. - [ActionRequest](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ActionRequest.md) (class): Represents an action request with a name, args, and description. - [AgentMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware.md) (class): Base middleware class for an agent - [AgentState](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentState.md) (class): State schema for the agent. - [ApproveDecision](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ApproveDecision.md) (class): Response when a human approves the action. - [AutoStrategy](https://reference.langchain.com/python/langchain/agents/structured_output/AutoStrategy.md) (class): Automatically select the best strategy for structured output. - [BaseExecutionPolicy](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy.md) (class): Configuration contract for persistent shell sessions - [ClearToolUsesEdit](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit.md) (class): Configuration for clearing tool outputs when token limits are exceeded. - [CodexSandboxExecutionPolicy](https://reference.langchain.com/python/langchain/agents/middleware/_execution/CodexSandboxExecutionPolicy.md) (class): Launch the shell through the Codex CLI sandbox - [CommandExecutionResult](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/CommandExecutionResult.md) (class): Structured result from command execution. - [ContextEdit](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEdit.md) (class): Protocol describing a context editing strategy. - [ContextEditingMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEditingMiddleware.md) (class): Automatically prune tool results to manage context size - [DockerExecutionPolicy](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy.md) (class): Run the shell inside a dedicated Docker container - [EditDecision](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/EditDecision.md) (class): Response when a human edits the action. - [ExtendedModelResponse](https://reference.langchain.com/python/langchain/agents/middleware/types/ExtendedModelResponse.md) (class): Model response with an optional 'Command' from 'wrap_model_call' middleware - [FilesystemFileSearchMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware.md) (class): Provides Glob and Grep search over filesystem files - [HITLRequest](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLRequest.md) (class): Request for human feedback on a sequence of actions requested by a model. - [HITLResponse](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HITLResponse.md) (class): Response payload for a HITLRequest. - [HostExecutionPolicy](https://reference.langchain.com/python/langchain/agents/middleware/_execution/HostExecutionPolicy.md) (class): Run the shell directly on the host process - [HumanInTheLoopMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HumanInTheLoopMiddleware.md) (class): Human in the loop middleware. - [InterruptOnConfig](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/InterruptOnConfig.md) (class): Configuration for an action requiring human in the loop - [LLMToolEmulator](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator/LLMToolEmulator.md) (class): Emulates specified tools using an LLM instead of executing them - [LLMToolSelectorMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware.md) (class): Uses an LLM to select relevant tools before calling the main model - [ModelCallLimitExceededError](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitExceededError.md) (class): Exception raised when model call limits are exceeded - [ModelCallLimitMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware.md) (class): Tracks model call counts and enforces limits - [ModelCallLimitState](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitState.md) (class): State schema for `ModelCallLimitMiddleware` - [ModelFallbackMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/model_fallback/ModelFallbackMiddleware.md) (class): Automatic fallback to alternative models on errors - [ModelRequest](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest.md) (class): Model request information for the agent. - [ModelResponse](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelResponse.md) (class): Response from model execution including messages and optional structured output - [ModelRetryMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware.md) (class): Middleware that automatically retries failed model calls with configurable backoff - [MultipleStructuredOutputsError](https://reference.langchain.com/python/langchain/agents/structured_output/MultipleStructuredOutputsError.md) (class): Raised when model returns multiple structured output tool calls when only one is expected. - [OmitFromSchema](https://reference.langchain.com/python/langchain/agents/middleware/types/OmitFromSchema.md) (class): Annotation used to mark state attributes as omitted from input or output schemas. - [OutputToolBinding](https://reference.langchain.com/python/langchain/agents/structured_output/OutputToolBinding.md) (class): Information for tracking structured output tool metadata - [PIIDetectionError](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIDetectionError.md) (class): Raised when configured to block on detected sensitive values. - [PIIMatch](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/PIIMatch.md) (class): Represents an individual match of sensitive data. - [PIIMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware.md) (class): Detect and handle Personally Identifiable Information (PII) in conversations - [PlanningState](https://reference.langchain.com/python/langchain/agents/middleware/todo/PlanningState.md) (class): State schema for the todo middleware. - [ProviderStrategy](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategy.md) (class): Use the model provider's native structured output method. - [ProviderStrategyBinding](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategyBinding.md) (class): Information for tracking native structured output metadata - [RedactionRule](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/RedactionRule.md) (class): Configuration for handling a single PII type. - [RejectDecision](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/RejectDecision.md) (class): Response when a human rejects the action. - [ResolvedRedactionRule](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/ResolvedRedactionRule.md) (class): Resolved redaction rule ready for execution. - [ReviewConfig](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/ReviewConfig.md) (class): Policy for reviewing a HITL request. - [ShellSession](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellSession.md) (class): Persistent shell session that supports sequential command execution. - [ShellToolMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware.md) (class): Middleware that registers a persistent shell tool for agents - [ShellToolState](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolState.md) (class): Agent state extension for tracking shell session resources. - [StructuredOutputError](https://reference.langchain.com/python/langchain/agents/structured_output/StructuredOutputError.md) (class): Base class for structured output errors. - [StructuredOutputValidationError](https://reference.langchain.com/python/langchain/agents/structured_output/StructuredOutputValidationError.md) (class): Raised when structured output tool call arguments fail to parse according to the schema. - [SummarizationMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware.md) (class): Summarizes conversation history when token limits are approached - [Todo](https://reference.langchain.com/python/langchain/agents/middleware/todo/Todo.md) (class): A single todo item with content and status. - [TodoListMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware.md) (class): Middleware that provides todo list management capabilities to agents - [ToolCallLimitExceededError](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitExceededError.md) (class): Exception raised when tool call limits are exceeded - [ToolCallLimitMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware.md) (class): Track tool call counts and enforces limits during agent execution - [ToolCallLimitState](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitState.md) (class): State schema for `ToolCallLimitMiddleware` - [ToolRetryMiddleware](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware.md) (class): Middleware that automatically retries failed tool calls with configurable backoff - [ToolStrategy](https://reference.langchain.com/python/langchain/agents/structured_output/ToolStrategy.md) (class): Use a tool calling strategy for model responses. - [WriteTodosInput](https://reference.langchain.com/python/langchain/agents/middleware/todo/WriteTodosInput.md) (class): Input schema for the `write_todos` tool. #### Functions - [after_agent](https://reference.langchain.com/python/langchain/agents/middleware/types/after_agent.md) (function): Decorator used to dynamically create a middleware with the `after_agent` hook - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/types/after_model.md) (function): Decorator used to dynamically create a middleware with the `after_model` hook. - [apply_strategy](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/apply_strategy.md) (function): Apply the configured strategy to matches within content. - [before_agent](https://reference.langchain.com/python/langchain/agents/middleware/types/before_agent.md) (function): Decorator used to dynamically create a middleware with the `before_agent` hook. - [before_model](https://reference.langchain.com/python/langchain/agents/middleware/types/before_model.md) (function): Decorator used to dynamically create a middleware with the `before_model` hook. - [calculate_delay](https://reference.langchain.com/python/langchain/agents/middleware/_retry/calculate_delay.md) (function): Calculate delay for a retry attempt with exponential backoff and optional jitter. - [create_agent](https://reference.langchain.com/python/langchain/agents/factory/create_agent.md) (function): Creates an agent graph that calls tools in a loop until a stopping condition is met - [detect_credit_card](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/detect_credit_card.md) (function): Detect credit card numbers in content using Luhn validation. - [detect_email](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/detect_email.md) (function): Detect email addresses in content. - [detect_ip](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/detect_ip.md) (function): Detect IPv4 or IPv6 addresses in content. - [detect_mac_address](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/detect_mac_address.md) (function): Detect MAC addresses in content. - [detect_url](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/detect_url.md) (function): Detect URLs in content using regex and stdlib validation. - [dynamic_prompt](https://reference.langchain.com/python/langchain/agents/middleware/types/dynamic_prompt.md) (function): Decorator used to dynamically generate system prompts for the model - [glob_search](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/__init__/glob_search.md) (function): Fast file pattern matching tool that works with any codebase size - [grep_search](https://reference.langchain.com/python/langchain/agents/middleware/file_search/FilesystemFileSearchMiddleware/__init__/grep_search.md) (function): Fast content search tool that works with any codebase size - [hook_config](https://reference.langchain.com/python/langchain/agents/middleware/types/hook_config.md) (function): Decorator to configure hook behavior in middleware methods - [init_chat_model](https://reference.langchain.com/python/langchain/chat_models/base/init_chat_model.md) (function): Initialize a chat model from any supported provider using a unified interface - [init_embeddings](https://reference.langchain.com/python/langchain/embeddings/base/init_embeddings.md) (function): Initialize an embedding model from a model name and optional provider - [resolve_detector](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/resolve_detector.md) (function): Return a callable detector for the given configuration. - [shell_tool](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/__init__/shell_tool.md) (function) - [should_retry_exception](https://reference.langchain.com/python/langchain/agents/middleware/_retry/should_retry_exception.md) (function): Check if an exception should trigger a retry. - [validate_retry_params](https://reference.langchain.com/python/langchain/agents/middleware/_retry/validate_retry_params.md) (function): Validate retry parameters. - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/types/wrap_model_call.md) (function): Create middleware with `wrap_model_call` hook from a function - [wrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/types/wrap_tool_call.md) (function): Create middleware with `wrap_tool_call` hook from a function - [write_todos](https://reference.langchain.com/python/langchain/agents/middleware/todo/write_todos.md) (function): Create and manage a structured task list for your current work session. #### Methods - [aafter_agent](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/aafter_agent.md) (method): Async run shutdown commands and release resources when an agent completes. - [aafter_agent](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/aafter_agent.md) (method): Async logic to run after the agent execution completes. - [aafter_model](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HumanInTheLoopMiddleware/aafter_model.md) (method): Async trigger interrupt flows for relevant tool calls after an `AIMessage`. - [aafter_model](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/aafter_model.md) (method): Async logic to run after the model is called. - [aafter_model](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/aafter_model.md) (method): Async check AI messages for PII after model invocation. - [aafter_model](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/aafter_model.md) (method): Async increment tool call counts after a model call and check limits. - [aafter_model](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/aafter_model.md) (method): Check for parallel write_todos tool calls and return errors if detected - [aafter_model](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/aafter_model.md) (method): Async increment model call counts after a model call. - [abatch](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/abatch.md) (method) - [abatch_as_completed](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/abatch_as_completed.md) (method) - [abefore_agent](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/abefore_agent.md) (method): Async start the shell session and run startup commands. - [abefore_agent](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/abefore_agent.md) (method): Async logic to run before the agent execution starts. - [abefore_model](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/abefore_model.md) (method): Process messages before model invocation, potentially triggering summarization. - [abefore_model](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/abefore_model.md) (method): Async logic to run before the model is called. - [abefore_model](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/abefore_model.md) (method): Async check user messages and tool results for PII before model invocation. - [abefore_model](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/abefore_model.md) (method): Async check model call limits before making a model call. - [after_agent](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/after_agent.md) (method): Run shutdown commands and release resources when an agent completes. - [after_agent](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/after_agent.md) (method): Logic to run after the agent execution completes. - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/HumanInTheLoopMiddleware/after_model.md) (method): Trigger interrupt flows for relevant tool calls after an `AIMessage`. - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/after_model.md) (method): Logic to run after the model is called. - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/after_model.md) (method): Check AI messages for PII after model invocation. - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit/ToolCallLimitMiddleware/after_model.md) (method): Increment tool call counts after a model call and check limits. - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/after_model.md) (method): Check for parallel write_todos tool calls and return errors if detected - [after_model](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/after_model.md) (method): Increment model call counts after a model call. - [ainvoke](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/ainvoke.md) (method) - [apply](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEdit/apply.md) (method): Apply an edit to the message list in place. - [apply](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ClearToolUsesEdit/apply.md) (method): Apply the clear-tool-uses strategy. - [apply](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/ResolvedRedactionRule/apply.md) (method): Apply this rule to content, returning new content and matches. - [astream](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/astream.md) (method) - [astream_events](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/astream_events.md) (method) - [astream_log](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/astream_log.md) (method) - [atransform](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/atransform.md) (method) - [awrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEditingMiddleware/awrap_model_call.md) (method): Apply context edits before invoking the model via handler. - [awrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/awrap_model_call.md) (method): Intercept and control async model execution via handler callback - [awrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware/awrap_model_call.md) (method): Filter tools based on LLM selection before invoking the model via handler. - [awrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/awrap_model_call.md) (method): Update the system message to include the todo system prompt. - [awrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/model_fallback/ModelFallbackMiddleware/awrap_model_call.md) (method): Try fallback models in sequence on errors (async version). - [awrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/awrap_model_call.md) (method): Intercept and control async model execution with retry logic. - [awrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/awrap_tool_call.md) (method): Intercept and control async tool execution with retry logic. - [awrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/awrap_tool_call.md) (method): Intercept and control async tool execution via handler callback - [awrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator/LLMToolEmulator/awrap_tool_call.md) (method): Async version of `wrap_tool_call` - [batch](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/batch.md) (method) - [batch_as_completed](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/batch_as_completed.md) (method) - [before_agent](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolMiddleware/before_agent.md) (method): Start the shell session and run startup commands. - [before_agent](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/before_agent.md) (method): Logic to run before the agent execution starts. - [before_model](https://reference.langchain.com/python/langchain/agents/middleware/summarization/SummarizationMiddleware/before_model.md) (method): Process messages before model invocation, potentially triggering summarization. - [before_model](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/before_model.md) (method): Logic to run before the model is called. - [before_model](https://reference.langchain.com/python/langchain/agents/middleware/pii/PIIMiddleware/before_model.md) (method): Check user messages and tool results for PII before model invocation. - [before_model](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit/ModelCallLimitMiddleware/before_model.md) (method): Check model call limits before making a model call. - [bind_tools](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/bind_tools.md) (method) - [execute](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellSession/execute.md) (method): Execute a command in the persistent shell. - [from_schema_spec](https://reference.langchain.com/python/langchain/agents/structured_output/OutputToolBinding/from_schema_spec.md) (method): Create an `OutputToolBinding` instance from a `SchemaSpec`. - [from_schema_spec](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategyBinding/from_schema_spec.md) (method): Create a `ProviderStrategyBinding` instance from a `SchemaSpec`. - [invoke](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/invoke.md) (method) - [override](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelRequest/override.md) (method): Replace the request with a new request with the given overrides - [parse](https://reference.langchain.com/python/langchain/agents/structured_output/OutputToolBinding/parse.md) (method): Parse tool arguments according to the schema. - [parse](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategyBinding/parse.md) (method): Parse `AIMessage` content according to the schema. - [resolve](https://reference.langchain.com/python/langchain/agents/middleware/_redaction/RedactionRule/resolve.md) (method): Resolve runtime detector and return an immutable rule. - [restart](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellSession/restart.md) (method): Restart the shell process. - [spawn](https://reference.langchain.com/python/langchain/agents/middleware/_execution/BaseExecutionPolicy/spawn.md) (method): Launch the persistent shell process. - [spawn](https://reference.langchain.com/python/langchain/agents/middleware/_execution/HostExecutionPolicy/spawn.md) (method) - [spawn](https://reference.langchain.com/python/langchain/agents/middleware/_execution/CodexSandboxExecutionPolicy/spawn.md) (method) - [spawn](https://reference.langchain.com/python/langchain/agents/middleware/_execution/DockerExecutionPolicy/spawn.md) (method) - [start](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellSession/start.md) (method): Start the shell subprocess and reader threads. - [stop](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellSession/stop.md) (method): Stop the shell subprocess. - [stream](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/stream.md) (method) - [to_model_kwargs](https://reference.langchain.com/python/langchain/agents/structured_output/ProviderStrategy/to_model_kwargs.md) (method): Convert to kwargs to bind to a model to force structured output. - [transform](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/transform.md) (method) - [validate_payload](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/_ShellToolInput/validate_payload.md) (method) - [with_config](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/with_config.md) (method) - [with_structured_output](https://reference.langchain.com/python/langchain/chat_models/base/_ConfigurableModel/with_structured_output.md) (method) - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/context_editing/ContextEditingMiddleware/wrap_model_call.md) (method): Apply context edits before invoking the model via handler. - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/wrap_model_call.md) (method): Intercept and control model execution via handler callback - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection/LLMToolSelectorMiddleware/wrap_model_call.md) (method): Filter tools based on LLM selection before invoking the model via handler. - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/todo/TodoListMiddleware/wrap_model_call.md) (method): Update the system message to include the todo system prompt. - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/model_fallback/ModelFallbackMiddleware/wrap_model_call.md) (method): Try fallback models in sequence on errors. - [wrap_model_call](https://reference.langchain.com/python/langchain/agents/middleware/model_retry/ModelRetryMiddleware/wrap_model_call.md) (method): Intercept model execution and retry on failure. - [wrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry/ToolRetryMiddleware/wrap_tool_call.md) (method): Intercept tool execution and retry on failure. - [wrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentMiddleware/wrap_tool_call.md) (method): Intercept tool execution for retries, monitoring, or modification - [wrap_tool_call](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator/LLMToolEmulator/wrap_tool_call.md) (method): Emulate tool execution using LLM if tool should be emulated. #### Modules - [agents](https://reference.langchain.com/python/langchain/agents.md) (module): Entrypoint to building [Agents](https://docs.langchain.com/oss/python/langchain/agents) with LangChain. - [base](https://reference.langchain.com/python/langchain/chat_models/base.md) (module): Factory functions for chat models. - [base](https://reference.langchain.com/python/langchain/embeddings/base.md) (module): Factory functions for embeddings. - [chat_models](https://reference.langchain.com/python/langchain/chat_models.md) (module): Entrypoint to using [chat models](https://docs.langchain.com/oss/python/langchain/models) in LangChain. - [context_editing](https://reference.langchain.com/python/langchain/agents/middleware/context_editing.md) (module): Context editing middleware - [embeddings](https://reference.langchain.com/python/langchain/embeddings.md) (module): Embeddings models - [factory](https://reference.langchain.com/python/langchain/agents/factory.md) (module): Agent factory for creating agents with middleware support. - [file_search](https://reference.langchain.com/python/langchain/agents/middleware/file_search.md) (module): File search middleware for Anthropic text editor and memory tools - [human_in_the_loop](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop.md) (module): Human in the loop middleware. - [langchain](https://reference.langchain.com/python/langchain/langchain.md) (module): Main entrypoint into LangChain. - [messages](https://reference.langchain.com/python/langchain/messages.md) (module): Message and message content types - [middleware](https://reference.langchain.com/python/langchain/agents/middleware.md) (module): Entrypoint to using [middleware](https://docs.langchain.com/oss/python/langchain/middleware) plugins with [Agents](https://docs.langchain.com/oss/p... - [model_call_limit](https://reference.langchain.com/python/langchain/agents/middleware/model_call_limit.md) (module): Call tracking middleware for agents. - [model_fallback](https://reference.langchain.com/python/langchain/agents/middleware/model_fallback.md) (module): Model fallback middleware for agents. - [model_retry](https://reference.langchain.com/python/langchain/agents/middleware/model_retry.md) (module): Model retry middleware for agents. - [pii](https://reference.langchain.com/python/langchain/agents/middleware/pii.md) (module): PII detection and handling middleware for agents. - [rate_limiters](https://reference.langchain.com/python/langchain/rate_limiters.md) (module): Base abstraction and in-memory implementation of rate limiters - [shell_tool](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool.md) (module): Middleware that exposes a persistent shell tool to agents. - [structured_output](https://reference.langchain.com/python/langchain/agents/structured_output.md) (module): Types for setting agent response formats. - [summarization](https://reference.langchain.com/python/langchain/agents/middleware/summarization.md) (module): Summarization middleware. - [todo](https://reference.langchain.com/python/langchain/agents/middleware/todo.md) (module): Planning and task management middleware for agents. - [tool_call_limit](https://reference.langchain.com/python/langchain/agents/middleware/tool_call_limit.md) (module): Tool call limit middleware for agents. - [tool_emulator](https://reference.langchain.com/python/langchain/agents/middleware/tool_emulator.md) (module): Tool emulator middleware for testing. - [tool_node](https://reference.langchain.com/python/langchain/tools/tool_node.md) (module): Utils file included for backwards compat imports. - [tool_retry](https://reference.langchain.com/python/langchain/agents/middleware/tool_retry.md) (module): Tool retry middleware for agents. - [tool_selection](https://reference.langchain.com/python/langchain/agents/middleware/tool_selection.md) (module): LLM-based tool selector middleware. - [tools](https://reference.langchain.com/python/langchain/tools.md) (module): Tools. - [types](https://reference.langchain.com/python/langchain/agents/middleware/types.md) (module): Types for middleware and agents. #### TypeAliass - [ContextSize](https://reference.langchain.com/python/langchain/agents/middleware/summarization/ContextSize.md) (typeAlias): Union type for context size specifications - [Decision](https://reference.langchain.com/python/langchain/agents/middleware/human_in_the_loop/Decision.md) (typeAlias) - [ModelCallResult](https://reference.langchain.com/python/langchain/agents/middleware/types/ModelCallResult.md) (typeAlias): `TypeAlias` for model call handler return value - [OnFailure](https://reference.langchain.com/python/langchain/agents/middleware/_retry/OnFailure.md) (typeAlias): Type for specifying failure handling behavior - [ResponseFormat](https://reference.langchain.com/python/langchain/agents/structured_output/ResponseFormat.md) (typeAlias): Union type for all supported response format strategies. - [RetryOn](https://reference.langchain.com/python/langchain/agents/middleware/_retry/RetryOn.md) (typeAlias): Type for specifying which exceptions to retry on ### langchain_core #### Attributes - [action](https://reference.langchain.com/python/langchain-core/agents/AgentStep/action.md) (attribute): The `AgentAction` that was executed. - [Addable](https://reference.langchain.com/python/langchain-core/runnables/utils/Addable.md) (attribute) - [additional_import_mappings](https://reference.langchain.com/python/langchain-core/load/load/Reviver/additional_import_mappings.md) (attribute) - [additional_kwargs](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/additional_kwargs.md) (attribute): Currently inherited from `BaseMessage`, but not used. - [additional_kwargs](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/additional_kwargs.md) (attribute): Reserved for additional payload data associated with the message - [additional_kwargs](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/additional_kwargs.md) (attribute): Additional keyword arguments to pass to the prompt template. - [additional_kwargs](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/additional_kwargs.md) (attribute): Additional keyword arguments to pass to the prompt template. - [afunc](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/afunc.md) (attribute) - [afunc](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/afunc.md) (attribute) - [ALL_SERIALIZABLE_MAPPINGS](https://reference.langchain.com/python/langchain-core/load/load/ALL_SERIALIZABLE_MAPPINGS.md) (attribute) - [allowed_class_paths](https://reference.langchain.com/python/langchain-core/load/load/Reviver/allowed_class_paths.md) (attribute) - [allowed_comparators](https://reference.langchain.com/python/langchain-core/structured_query/Visitor/allowed_comparators.md) (attribute): Allowed comparators for the visitor. - [allowed_operators](https://reference.langchain.com/python/langchain-core/structured_query/Visitor/allowed_operators.md) (attribute): Allowed operators for the visitor. - [allowed_search_types](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/allowed_search_types.md) (attribute) - [AllowedObject](https://reference.langchain.com/python/langchain-core/load/load/AllowedObject.md) (attribute): Type alias for classes that can be included in the `allowed_objects` parameter - [alternatives](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives/alternatives.md) (attribute): The alternatives to choose from. - [AND](https://reference.langchain.com/python/langchain-core/structured_query/Operator/AND.md) (attribute) - [annotation](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableField/annotation.md) (attribute): The annotation of the field. - [annotation](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/annotation.md) (attribute): The annotation of the field. - [annotations](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock/annotations.md) (attribute): `Citation`s and other annotations. - [AnyMessage](https://reference.langchain.com/python/langchain-core/messages/utils/AnyMessage.md) (attribute): A type representing any defined `Message` or `MessageChunk` type. - [API](https://reference.langchain.com/python/langchain-core/runnables/graph/MermaidDrawMethod/API.md) (attribute): Uses Mermaid.INK API to render the graph - [arbitrary_types_allowed](https://reference.langchain.com/python/langchain-core/tools/base/_SchemaConfig/arbitrary_types_allowed.md) (attribute): Whether to allow arbitrary types in the model. - [args](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCall/args.md) (attribute): The arguments to the tool call as a dictionary. - [args](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCallChunk/args.md) (attribute): The arguments to the tool call as a JSON-parseable string. - [args](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall/args.md) (attribute): The arguments to the tool call. - [args](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk/args.md) (attribute): The arguments to the tool call. - [args](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/args.md) (attribute): The arguments to the tool call. - [args](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall/args.md) (attribute): The arguments to the tool call. - [args](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk/args.md) (attribute): JSON substring of the arguments to the tool call. - [args](https://reference.langchain.com/python/langchain-core/tools/simple/Tool/args.md) (attribute): The tool's input arguments. - [args](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/args.md) (attribute): Get the tool's input arguments schema. - [args_only](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/OutputFunctionsParser/args_only.md) (attribute): Whether to only return the arguments to the function call. - [args_only](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonOutputFunctionsParser/args_only.md) (attribute): Whether to only return the arguments to the function call. - [args_schema](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool/args_schema.md) (attribute): The input arguments' schema. - [args_schema](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/args_schema.md) (attribute): Pydantic model class to validate and parse the tool's input arguments - [arguments](https://reference.langchain.com/python/langchain-core/structured_query/Operation/arguments.md) (attribute): The arguments to the operator. - [artifact](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/artifact.md) (attribute): Artifact of the Tool execution which is not meant to be sent to the model - [as_of](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/as_of.md) (attribute) - [atee](https://reference.langchain.com/python/langchain-core/utils/aiter/atee.md) (attribute) - [attachment](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/attachment.md) (attribute): Whether the model supports file attachments. - [attr_name](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticAttrOutputFunctionsParser/attr_name.md) (attribute): The name of the attribute to return. - [attribute](https://reference.langchain.com/python/langchain-core/structured_query/Comparison/attribute.md) (attribute): The attribute to compare. - [audio](https://reference.langchain.com/python/langchain-core/messages/ai/InputTokenDetails/audio.md) (attribute): Audio input tokens. - [audio](https://reference.langchain.com/python/langchain-core/messages/ai/OutputTokenDetails/audio.md) (attribute): Audio output tokens. - [audio_inputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/audio_inputs.md) (attribute): Whether [audio inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [audio_outputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/audio_outputs.md) (attribute): Whether [audio outputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [auto_close](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/auto_close.md) (attribute) - [available_tokens](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/available_tokens.md) (attribute) - [base64](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/base64.md) (attribute): Data as a base64 string. - [base64](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/base64.md) (attribute): Data as a base64 string. - [base64](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/base64.md) (attribute): Data as a base64 string. - [base64](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/base64.md) (attribute): Data as a base64 string. - [base64](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/base64.md) (attribute): Data as a base64 string. - [BASIS](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/BASIS.md) (attribute) - [bound](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/bound.md) (attribute) - [bound](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/bound.md) (attribute): The underlying `Runnable` that this `Runnable` delegates to. - [branches](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/branches.md) (attribute): A list of `(condition, Runnable)` pairs. - [buffer](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/buffer.md) (attribute) - [BUMP_X](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/BUMP_X.md) (attribute) - [BUMP_Y](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/BUMP_Y.md) (attribute) - [ByteStore](https://reference.langchain.com/python/langchain-core/stores/ByteStore.md) (attribute) - [cache](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/cache.md) (attribute): Whether to cache the response - [cache_creation](https://reference.langchain.com/python/langchain-core/messages/ai/InputTokenDetails/cache_creation.md) (attribute): Input tokens that were cached and there was a cache miss - [cache_read](https://reference.langchain.com/python/langchain-core/messages/ai/InputTokenDetails/cache_read.md) (attribute): Input tokens that were cached and there was a cache hit - [callbacks](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/callbacks.md) (attribute): Callbacks for this call and any sub-calls (e.g - [callbacks](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/callbacks.md) (attribute): Callbacks to be called during tool execution. - [callbacks](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/callbacks.md) (attribute): Callbacks to add to the run trace. - [canvas](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/canvas.md) (attribute) - [CARDINAL](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/CARDINAL.md) (attribute) - [CATMULL_ROM](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/CATMULL_ROM.md) (attribute) - [check_every_n_seconds](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/check_every_n_seconds.md) (attribute) - [chunk](https://reference.langchain.com/python/langchain-core/runnables/schema/EventData/chunk.md) (attribute): A streaming chunk from the output that generated the event - [chunk_position](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/chunk_position.md) (attribute): Optional span represented by an aggregated `AIMessageChunk` - [cited_text](https://reference.langchain.com/python/langchain-core/messages/content/Citation/cited_text.md) (attribute): Excerpt of source text being cited. - [client](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/client.md) (attribute): The LangSmith client instance used for evaluating the runs. - [client](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/client.md) (attribute) - [CLOUD_METADATA_HOSTNAMES](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/CLOUD_METADATA_HOSTNAMES.md) (attribute) - [CLOUD_METADATA_IPS](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/CLOUD_METADATA_IPS.md) (attribute) - [CLOUD_METADATA_RANGES](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/CLOUD_METADATA_RANGES.md) (attribute) - [color](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/color.md) (attribute) - [color](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/color.md) (attribute) - [cols](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/cols.md) (attribute) - [comparator](https://reference.langchain.com/python/langchain-core/structured_query/Comparison/comparator.md) (attribute): The comparator to use. - [condition](https://reference.langchain.com/python/langchain-core/runnables/graph/Branch/condition.md) (attribute): A callable that returns a string representation of the condition. - [conditional](https://reference.langchain.com/python/langchain-core/runnables/graph/Edge/conditional.md) (attribute): Whether the edge is conditional. - [config](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/config.md) (attribute): The configuration to use. - [config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/config.md) (attribute): The config to bind to the underlying `Runnable`. - [config](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/RootListenersTracer/config.md) (attribute) - [config](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/AsyncRootListenersTracer/config.md) (attribute) - [config_factories](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/config_factories.md) (attribute): The config factories to bind to the underlying `Runnable`. - [CONFIG_KEYS](https://reference.langchain.com/python/langchain-core/runnables/config/CONFIG_KEYS.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableFields/config_specs.md) (attribute): Get the configuration specs for the `RunnableConfigurableFields`. - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/config_specs.md) (attribute): Get the configuration specs for the `RunnableWithMessageHistory`. - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/config_specs.md) (attribute): List configurable fields for this `Runnable`. - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/config_specs.md) (attribute): Get the config specs of the `Runnable`. - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/config_specs.md) (attribute): Get the config specs of the `Runnable`. - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/config_specs.md) (attribute) - [config_specs](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/config_specs.md) (attribute) - [configurable](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/configurable.md) (attribute): Runtime values for attributes previously made configurable on this `Runnable`, or sub-`Runnable` objects, through `configurable_fields` or `configu... - [CONTAIN](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/CONTAIN.md) (attribute) - [content](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/content.md) (attribute): The contents of the message. - [content_blocks](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/content_blocks.md) (attribute): Return standard, typed `ContentBlock` dicts from the message - [content_blocks](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/content_blocks.md) (attribute): Return standard, typed `ContentBlock` dicts from the message. - [content_blocks](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/content_blocks.md) (attribute): Load content blocks from the message content - [content_key](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/content_key.md) (attribute) - [context](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/context.md) (attribute): Context for the text, e.g., a description or summary of the text's content. - [COPIABLE_KEYS](https://reference.langchain.com/python/langchain-core/runnables/config/COPIABLE_KEYS.md) (attribute) - [coroutine](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool/coroutine.md) (attribute): The asynchronous version of the function. - [coroutine](https://reference.langchain.com/python/langchain-core/tools/simple/Tool/coroutine.md) (attribute): The asynchronous version of the function. - [count](https://reference.langchain.com/python/langchain-core/runnables/utils/GetLambdaSource/count.md) (attribute) - [current_path](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/current_path.md) (attribute) - [current_path_has_children](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/current_path_has_children.md) (attribute) - [custom_get_token_ids](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/custom_get_token_ids.md) (attribute): Optional encoder to use for counting tokens. - [custom_input_type](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/custom_input_type.md) (attribute): Override the input type of the underlying `Runnable` with a custom type - [custom_output_type](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/custom_output_type.md) (attribute): Override the output type of the underlying `Runnable` with a custom type - [data](https://reference.langchain.com/python/langchain-core/runnables/graph/Edge/data.md) (attribute): Optional data associated with the edge. - [data](https://reference.langchain.com/python/langchain-core/runnables/graph/Node/data.md) (attribute): The data of the node. - [data](https://reference.langchain.com/python/langchain-core/runnables/schema/StandardStreamEvent/data.md) (attribute): Event data - [data](https://reference.langchain.com/python/langchain-core/runnables/schema/CustomStreamEvent/data.md) (attribute): The data associated with the event - [data](https://reference.langchain.com/python/langchain-core/documents/base/Blob/data.md) (attribute): Raw data associated with the `Blob`. - [data](https://reference.langchain.com/python/langchain-core/language_models/_utils/ParsedDataUri/data.md) (attribute) - [dataset_id](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/dataset_id.md) (attribute) - [dataset_name](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/dataset_name.md) (attribute) - [default](https://reference.langchain.com/python/langchain-core/runnables/graph/NodeStyles/default.md) (attribute) - [default](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption/default.md) (attribute): The default value for the field. - [default](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption/default.md) (attribute): The default values for the field. - [default](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/default.md) (attribute): The default value for the field. - [default](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/default.md) (attribute): The default `Runnable` to use. - [default](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/default.md) (attribute): A `Runnable` to run if no condition is met. - [DEFAULT_FORMATTER_MAPPING](https://reference.langchain.com/python/langchain-core/prompts/string/DEFAULT_FORMATTER_MAPPING.md) (attribute) - [default_key](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives/default_key.md) (attribute): The enum value to use for the default option. - [DEFAULT_LINK_REGEX](https://reference.langchain.com/python/langchain-core/utils/html/DEFAULT_LINK_REGEX.md) (attribute) - [DEFAULT_NAMESPACES](https://reference.langchain.com/python/langchain-core/load/load/DEFAULT_NAMESPACES.md) (attribute) - [DEFAULT_RECURSION_LIMIT](https://reference.langchain.com/python/langchain-core/runnables/config/DEFAULT_RECURSION_LIMIT.md) (attribute) - [DEFAULT_VALIDATOR_MAPPING](https://reference.langchain.com/python/langchain-core/prompts/string/DEFAULT_VALIDATOR_MAPPING.md) (attribute) - [Defs](https://reference.langchain.com/python/langchain-core/prompts/string/Defs.md) (attribute) - [dependencies](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/dependencies.md) (attribute): The dependencies of the field. - [deps](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/deps.md) (attribute): The dependencies of this `Runnable`. - [description](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableField/description.md) (attribute): The description of the field. - [description](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption/description.md) (attribute): The description of the field. - [description](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption/description.md) (attribute): The description of the field. - [description](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/description.md) (attribute): The description of the field. - [description](https://reference.langchain.com/python/langchain-core/utils/function_calling/FunctionDescription/description.md) (attribute): A description of the function. - [description](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool/description.md) (attribute) - [description](https://reference.langchain.com/python/langchain-core/tools/simple/Tool/description.md) (attribute) - [description](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/description.md) (attribute): Used to tell the model how/when/why to use the tool - [detail](https://reference.langchain.com/python/langchain-core/prompt_values/ImageURL/detail.md) (attribute): Specifies the detail level of the image - [diff](https://reference.langchain.com/python/langchain-core/output_parsers/transform/BaseCumulativeTransformOutputParser/diff.md) (attribute): In streaming mode, whether to yield diffs between the previous and current parsed output, or just the current parsed output. - [disable_streaming](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/disable_streaming.md) (attribute): Whether to disable streaming for this model - [DISALLOW_LOAD_FROM_PATH](https://reference.langchain.com/python/langchain-core/load/load/DISALLOW_LOAD_FROM_PATH.md) (attribute) - [edges](https://reference.langchain.com/python/langchain-core/runnables/graph/LabelsDict/edges.md) (attribute): Labels for edges. - [edges](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/edges.md) (attribute) - [embedding](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/embedding.md) (attribute) - [embeddings](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/embeddings.md) (attribute): Access the query embedding object if available. - [embeddings](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/embeddings.md) (attribute) - [EMPTY_DICT](https://reference.langchain.com/python/langchain-core/utils/mustache/EMPTY_DICT.md) (attribute) - [encoding](https://reference.langchain.com/python/langchain-core/documents/base/Blob/encoding.md) (attribute): Encoding to use if decoding the bytes into a string - [encoding_matcher](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XMLOutputParser/encoding_matcher.md) (attribute) - [end_index](https://reference.langchain.com/python/langchain-core/messages/content/Citation/end_index.md) (attribute): End index of the **response text** (`TextContentBlock.text`) - [end_time](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/end_time.md) (attribute): ISO-8601 timestamp of when the run ended - [ended](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup/ended.md) (attribute) - [ended](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup/ended.md) (attribute) - [ends](https://reference.langchain.com/python/langchain-core/runnables/graph/Branch/ends.md) (attribute): Optional dictionary of end node IDs for the branches. - [EQ](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/EQ.md) (attribute) - [error](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/error.md) (attribute): An error message associated with the tool call. - [error](https://reference.langchain.com/python/langchain-core/runnables/schema/EventData/error.md) (attribute): The error that occurred during the execution of the `Runnable` - [error_on_chunk_number](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeStreamingListLLM/error_on_chunk_number.md) (attribute): If set, will raise an exception on the specified chunk number. - [error_on_chunk_number](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel/error_on_chunk_number.md) (attribute): If set, raise an error on the specified chunk number during streaming. - [evaluators](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/evaluators.md) (attribute): The sequence of run evaluators to be executed. - [event](https://reference.langchain.com/python/langchain-core/runnables/schema/BaseStreamEvent/event.md) (attribute): Event names are of the format: `on_[runnable_type]_(start|stream|end)` - [event](https://reference.langchain.com/python/langchain-core/runnables/schema/CustomStreamEvent/event.md) (attribute): The event type. - [example_id](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/example_id.md) (attribute): The example ID associated with the runs. - [example_id](https://reference.langchain.com/python/langchain-core/tracers/run_collector/RunCollectorCallbackHandler/example_id.md) (attribute) - [example_id](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/example_id.md) (attribute) - [example_ids](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/example_ids.md) (attribute) - [example_keys](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/example_keys.md) (attribute): Optional keys to filter examples to. - [example_prompt](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/example_prompt.md) (attribute): `PromptTemplate` used to format an individual example. - [example_prompt](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/example_prompt.md) (attribute): The class to format each example. - [example_prompt](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/example_prompt.md) (attribute): `PromptTemplate` used to format an individual example. - [example_prompt](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/example_prompt.md) (attribute): Prompt template used to format the examples. - [example_selector](https://reference.langchain.com/python/langchain-core/prompts/few_shot/_FewShotPromptTemplateMixin/example_selector.md) (attribute): `ExampleSelector` to choose the examples to format into the prompt - [example_selector](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/example_selector.md) (attribute): `ExampleSelector` to choose the examples to format into the prompt - [example_separator](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/example_separator.md) (attribute): String separator used to join the prefix, the examples, and suffix. - [example_separator](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/example_separator.md) (attribute): String separator used to join the prefix, the examples, and suffix. - [example_text_lengths](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/example_text_lengths.md) (attribute): Length of each example. - [examples](https://reference.langchain.com/python/langchain-core/prompts/few_shot/_FewShotPromptTemplateMixin/examples.md) (attribute): Examples to format into the prompt - [examples](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/examples.md) (attribute): Examples to format into the prompt - [examples](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/examples.md) (attribute): A list of the examples that the prompt template expects. - [exception_key](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/exception_key.md) (attribute): If `string` is specified then handled exceptions will be passed to fallbacks as part of the input under the specified key - [exceptions_to_handle](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/exceptions_to_handle.md) (attribute): The exceptions on which fallbacks should be tried - [exclude_names](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/exclude_names.md) (attribute) - [exclude_names](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/exclude_names.md) (attribute) - [exclude_tags](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/exclude_tags.md) (attribute) - [exclude_tags](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/exclude_tags.md) (attribute) - [exclude_types](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/exclude_types.md) (attribute) - [exclude_types](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/exclude_types.md) (attribute) - [executor](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/executor.md) (attribute): The thread pool executor used for running the evaluators. - [exp_base](https://reference.langchain.com/python/langchain-core/runnables/retry/ExponentialJitterParams/exp_base.md) (attribute): Base for exponential backoff. - [exponential_jitter_params](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/exponential_jitter_params.md) (attribute): Parameters for `tenacity.wait_exponential_jitter` - [extra](https://reference.langchain.com/python/langchain-core/tools/base/_SchemaConfig/extra.md) (attribute): Whether to allow extra fields in the model. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/Citation/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ReasoningContentBlock/extras.md) (attribute): Provider-specific metadata. - [extras](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/extras.md) (attribute): Provider-specific metadata - [extras](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/extras.md) (attribute): Provider-specific metadata - [extras](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/extras.md) (attribute): Provider-specific metadata - [extras](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/extras.md) (attribute): Provider-specific metadata - [extras](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/extras.md) (attribute): Provider-specific metadata - [extras](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/extras.md) (attribute): Optional provider-specific extra fields for the tool - [failed](https://reference.langchain.com/python/langchain-core/indexing/base/UpsertResponse/failed.md) (attribute): The IDs that failed to index. - [failed](https://reference.langchain.com/python/langchain-core/indexing/base/DeleteResponse/failed.md) (attribute): The IDs that failed to be deleted - [fallbacks](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/fallbacks.md) (attribute): A sequence of fallbacks to try. - [fetch_k](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/MaxMarginalRelevanceExampleSelector/fetch_k.md) (attribute): Number of examples to fetch to rerank. - [fields](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableFields/fields.md) (attribute): The configurable fields to use. - [file](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/file.md) (attribute) - [file_id](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/file_id.md) (attribute): Reference to the image in an external file storage system - [file_id](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/file_id.md) (attribute): Reference to the video in an external file storage system - [file_id](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/file_id.md) (attribute): Reference to the audio file in an external file storage system - [file_id](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/file_id.md) (attribute): Reference to the plaintext file in an external file storage system - [file_id](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/file_id.md) (attribute): Reference to the file in an external file storage system - [filename](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/filename.md) (attribute) - [filter](https://reference.langchain.com/python/langchain-core/structured_query/StructuredQuery/filter.md) (attribute): Filtering expression. - [filter](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/filter.md) (attribute) - [FILTERED_ARGS](https://reference.langchain.com/python/langchain-core/tools/base/FILTERED_ARGS.md) (attribute) - [final_output](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/final_output.md) (attribute): Final output of this run - [final_output](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState/final_output.md) (attribute): Final output of the run, usually the result of aggregating (`+`) streamed_output - [first](https://reference.langchain.com/python/langchain-core/runnables/graph/NodeStyles/first.md) (attribute) - [first](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/first.md) (attribute): The first `Runnable` in the sequence. - [first_tool_only](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputToolsParser/first_tool_only.md) (attribute): Whether to return only the first tool call - [fontname](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/fontname.md) (attribute) - [format_content](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/format_content.md) (attribute) - [FormatOutputType](https://reference.langchain.com/python/langchain-core/prompts/base/FormatOutputType.md) (attribute) - [formatter](https://reference.langchain.com/python/langchain-core/utils/formatting/formatter.md) (attribute) - [func](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/func.md) (attribute) - [func](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/func.md) (attribute) - [func](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool/func.md) (attribute): The function to run when the tool is called. - [func](https://reference.langchain.com/python/langchain-core/tools/simple/Tool/func.md) (attribute): The function to run when the tool is called. - [Func](https://reference.langchain.com/python/langchain-core/callbacks/manager/Func.md) (attribute) - [function](https://reference.langchain.com/python/langchain-core/utils/function_calling/ToolDescription/function.md) (attribute): The function description. - [function_callback](https://reference.langchain.com/python/langchain-core/tracers/stdout/FunctionCallbackHandler/function_callback.md) (attribute) - [functions](https://reference.langchain.com/python/langchain-core/chat_sessions/ChatSession/functions.md) (attribute): A sequence of the function calling specs for the messages. - [futures](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/futures.md) (attribute): The set of futures representing the running evaluators. - [g_token_cache](https://reference.langchain.com/python/langchain-core/utils/mustache/g_token_cache.md) (attribute) - [generation_info](https://reference.langchain.com/python/langchain-core/outputs/generation/Generation/generation_info.md) (attribute): Raw response from the provider - [generations](https://reference.langchain.com/python/langchain-core/outputs/llm_result/LLMResult/generations.md) (attribute): Generated outputs - [generations](https://reference.langchain.com/python/langchain-core/outputs/chat_result/ChatResult/generations.md) (attribute): List of the chat generations - [get_session_history](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/get_session_history.md) (attribute): Function that returns a new `BaseChatMessageHistory` - [get_text_length](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/get_text_length.md) (attribute): Function to measure prompt length - [GetSessionHistoryCallable](https://reference.langchain.com/python/langchain-core/runnables/history/GetSessionHistoryCallable.md) (attribute) - [graph](https://reference.langchain.com/python/langchain-core/load/serializable/BaseSerialized/graph.md) (attribute): The graph of the object. - [group_id](https://reference.langchain.com/python/langchain-core/indexing/base/_Record/group_id.md) (attribute) - [GT](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/GT.md) (attribute) - [GTE](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/GTE.md) (attribute) - [h](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/VertexViewer/h.md) (attribute): Height of the box. - [handle_tool_error](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/handle_tool_error.md) (attribute): Handle the content of the `ToolException` thrown. - [handle_validation_error](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/handle_validation_error.md) (attribute): Handle the content of the `ValidationError` thrown. - [handlers](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/handlers.md) (attribute) - [handlers](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/handlers.md) (attribute) - [HEIGHT](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/VertexViewer/HEIGHT.md) (attribute): Height of the box. - [HERE](https://reference.langchain.com/python/langchain-core/_api/path/HERE.md) (attribute) - [history_factory_config](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/history_factory_config.md) (attribute): Configure fields that should be passed to the chat history factory - [history_messages_key](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/history_messages_key.md) (attribute): Must be specified if the base `Runnable` accepts a `dict` as input and expects a separate key for historical messages. - [i](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeListLLM/i.md) (attribute): Internally incremented after every model invocation - [i](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeMessagesListChatModel/i.md) (attribute): Internally incremented after every model invocation. - [i](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel/i.md) (attribute): Internally incremented after every model invocation. - [id](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCall/id.md) (attribute): An identifier associated with the tool call - [id](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCallChunk/id.md) (attribute): An identifier associated with the tool call - [id](https://reference.langchain.com/python/langchain-core/messages/content/Citation/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardAnnotation/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall/id.md) (attribute): An identifier associated with the tool call - [id](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk/id.md) (attribute): An identifier associated with the tool call - [id](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/id.md) (attribute): An identifier associated with the tool call - [id](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall/id.md) (attribute): An identifier associated with the tool call. - [id](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk/id.md) (attribute): Unique identifier for this server tool call chunk - [id](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/id.md) (attribute): Unique identifier for this server tool result - [id](https://reference.langchain.com/python/langchain-core/messages/content/ReasoningContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardContentBlock/id.md) (attribute): Unique identifier for this content block - [id](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/id.md) (attribute): An optional unique identifier for the message - [id](https://reference.langchain.com/python/langchain-core/load/serializable/BaseSerialized/id.md) (attribute): The unique identifier of the object. - [id](https://reference.langchain.com/python/langchain-core/runnables/graph/Node/id.md) (attribute): The unique identifier of the node. - [id](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableField/id.md) (attribute): The unique identifier of the field. - [id](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption/id.md) (attribute): The unique identifier of the field. - [id](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption/id.md) (attribute): The unique identifier of the field. - [id](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/id.md) (attribute): The unique identifier of the field. - [id](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/id.md) (attribute): ID of the sub-run. - [id](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState/id.md) (attribute): ID of the run. - [id](https://reference.langchain.com/python/langchain-core/documents/base/BaseMedia/id.md) (attribute): An optional identifier for the document - [ignore_agent](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_agent.md) (attribute): Whether to ignore agent callbacks. - [ignore_chain](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_chain.md) (attribute): Whether to ignore chain callbacks. - [ignore_chat_model](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_chat_model.md) (attribute): Whether to ignore chat model callbacks. - [ignore_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_custom_event.md) (attribute): Ignore custom event. - [ignore_llm](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_llm.md) (attribute): Whether to ignore LLM callbacks. - [ignore_retriever](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_retriever.md) (attribute): Whether to ignore retriever callbacks. - [ignore_retry](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/ignore_retry.md) (attribute): Whether to ignore retry callbacks. - [ignore_unserializable_fields](https://reference.langchain.com/python/langchain-core/load/load/Reviver/ignore_unserializable_fields.md) (attribute) - [image_inputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/image_inputs.md) (attribute): Whether image inputs are supported. - [image_outputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/image_outputs.md) (attribute): Whether [image outputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [image_tool_message](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/image_tool_message.md) (attribute): Whether images can be included in tool messages. - [image_url](https://reference.langchain.com/python/langchain-core/prompt_values/ImagePromptValue/image_url.md) (attribute): Image URL. - [image_url](https://reference.langchain.com/python/langchain-core/prompts/chat/_ImageTemplateParam/image_url.md) (attribute) - [image_url_inputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/image_url_inputs.md) (attribute): Whether [image URL inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [import_mappings](https://reference.langchain.com/python/langchain-core/load/load/Reviver/import_mappings.md) (attribute) - [IN](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/IN.md) (attribute) - [include_names](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/include_names.md) (attribute) - [include_names](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/include_names.md) (attribute) - [include_tags](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/include_tags.md) (attribute) - [include_tags](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/include_tags.md) (attribute) - [include_types](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/include_types.md) (attribute) - [include_types](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/include_types.md) (attribute) - [index](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCallChunk/index.md) (attribute): The index of the tool call in a sequence - [index](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk/index.md) (attribute): The index of the tool call in a sequence. - [index](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ReasoningContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/index.md) (attribute): Index of block in aggregate response - [index](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardContentBlock/index.md) (attribute): Index of block in aggregate response - [inheritable_handlers](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/inheritable_handlers.md) (attribute) - [inheritable_handlers](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/inheritable_handlers.md) (attribute) - [inheritable_metadata](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/inheritable_metadata.md) (attribute) - [inheritable_metadata](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/inheritable_metadata.md) (attribute) - [inheritable_tags](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/inheritable_tags.md) (attribute) - [inheritable_tags](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/inheritable_tags.md) (attribute) - [init_validator](https://reference.langchain.com/python/langchain-core/load/load/Reviver/init_validator.md) (attribute) - [initial](https://reference.langchain.com/python/langchain-core/runnables/retry/ExponentialJitterParams/initial.md) (attribute): Initial wait. - [InitValidator](https://reference.langchain.com/python/langchain-core/load/load/InitValidator.md) (attribute): Type alias for a callable that validates kwargs during deserialization - [inline_s3_urls](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/inline_s3_urls.md) (attribute) - [input](https://reference.langchain.com/python/langchain-core/runnables/router/RouterInput/input.md) (attribute): The input to pass to the selected `Runnable`. - [input](https://reference.langchain.com/python/langchain-core/runnables/schema/EventData/input.md) (attribute): The input passed to the `Runnable` that generated the event - [Input](https://reference.langchain.com/python/langchain-core/runnables/utils/Input.md) (attribute) - [input_keys](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/input_keys.md) (attribute): Optional keys to filter input to - [input_messages_key](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/input_messages_key.md) (attribute): Must be specified if the base `Runnable` accepts a `dict` as input - [input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/input_schema.md) (attribute): The type of input this `Runnable` accepts specified as a Pydantic model. - [input_token_details](https://reference.langchain.com/python/langchain-core/messages/ai/UsageMetadata/input_token_details.md) (attribute): Breakdown of input token counts - [input_tokens](https://reference.langchain.com/python/langchain-core/messages/ai/UsageMetadata/input_tokens.md) (attribute): Count of input (or prompt) tokens - [input_type](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/input_type.md) (attribute) - [input_types](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/input_types.md) (attribute): A dictionary of the types of the variables the prompt template expects - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/input_variables.md) (attribute): Input variables for this prompt template. - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/input_variables.md) (attribute): A list of the names of the variables the prompt template will use to pass to the `example_selector`, if provided. - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/input_variables.md) (attribute): Template input variables. - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/input_variables.md) (attribute): A list of the names of the variables whose values are required as inputs to the prompt. - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder/input_variables.md) (attribute): Input variables for this prompt template. - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/input_variables.md) (attribute): Input variables for this prompt template. - [input_variables](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/input_variables.md) (attribute): Input variables for this prompt template. - [inputs](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/inputs.md) (attribute): Inputs to this run - [inputs](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/inputs.md) (attribute): The inputs to the run. - [InputType](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/InputType.md) (attribute) - [InputType](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/InputType.md) (attribute) - [InputType](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/InputType.md) (attribute) - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/InputType.md) (attribute): Input type - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/InputType.md) (attribute): The type of the input to the `Runnable`. - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/InputType.md) (attribute): The type of the input to the `Runnable`. - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/InputType.md) (attribute) - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/InputType.md) (attribute): The type of the input to this `Runnable`. - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/InputType.md) (attribute) - [InputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/InputType.md) (attribute) - [InputType](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseGenerationOutputParser/InputType.md) (attribute): Return the input type for the parser. - [InputType](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/InputType.md) (attribute): Return the input type for the parser. - [InputType](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/InputType.md) (attribute): Get the input type for this `Runnable`. - [INVALID_PROMPT_INPUT](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/INVALID_PROMPT_INPUT.md) (attribute) - [invalid_tool_calls](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/invalid_tool_calls.md) (attribute): If present, tool calls with parsing errors associated with the message. - [INVALID_TOOL_RESULTS](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/INVALID_TOOL_RESULTS.md) (attribute) - [is_async](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/is_async.md) (attribute): Return whether the handler is async. - [is_async](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/is_async.md) (attribute): Whether the callback manager is async. - [IS_PYDANTIC_V1](https://reference.langchain.com/python/langchain-core/utils/pydantic/IS_PYDANTIC_V1.md) (attribute) - [IS_PYDANTIC_V2](https://reference.langchain.com/python/langchain-core/utils/pydantic/IS_PYDANTIC_V2.md) (attribute) - [is_shared](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableField/is_shared.md) (attribute): Whether the field is shared. - [is_shared](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption/is_shared.md) (attribute): Whether the field is shared. - [is_shared](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption/is_shared.md) (attribute): Whether the field is shared. - [is_shared](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/is_shared.md) (attribute): Whether the field is shared. - [is_single_input](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/is_single_input.md) (attribute): Check if the tool accepts only a single input argument. - [is_tapped](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/is_tapped.md) (attribute) - [jitter](https://reference.langchain.com/python/langchain-core/runnables/retry/ExponentialJitterParams/jitter.md) (attribute): Random additional wait sampled from random.uniform(0, jitter). - [JSON_FORMAT_INSTRUCTIONS](https://reference.langchain.com/python/langchain-core/output_parsers/format_instructions/JSON_FORMAT_INSTRUCTIONS.md) (attribute) - [k](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/k.md) (attribute): Number of examples to select. - [K](https://reference.langchain.com/python/langchain-core/stores/K.md) (attribute) - [key](https://reference.langchain.com/python/langchain-core/runnables/router/RouterInput/key.md) (attribute): The key to route on. - [key_name](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputKeyToolsParser/key_name.md) (attribute): The type of tools to return. - [key_name](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonKeyOutputFunctionsParser/key_name.md) (attribute): The name of the key to return. - [keys](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/keys.md) (attribute) - [keys](https://reference.langchain.com/python/langchain-core/runnables/utils/IsLocalDict/keys.md) (attribute) - [keys](https://reference.langchain.com/python/langchain-core/runnables/utils/IsFunctionArgDict/keys.md) (attribute) - [KNOWN_BLOCK_TYPES](https://reference.langchain.com/python/langchain-core/messages/content/KNOWN_BLOCK_TYPES.md) (attribute): These are block types known to `langchain-core >= 1.0.0` - [kwargs](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedConstructor/kwargs.md) (attribute): The constructor arguments. - [kwargs](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/kwargs.md) (attribute): kwargs to pass to the underlying `Runnable` when running - [labels](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/labels.md) (attribute) - [LanguageModelLike](https://reference.langchain.com/python/langchain-core/language_models/base/LanguageModelLike.md) (attribute): Input/output interface for a language model. - [LanguageModelOutputVar](https://reference.langchain.com/python/langchain-core/language_models/base/LanguageModelOutputVar.md) (attribute): Type variable for the output of a language model. - [last](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/last.md) (attribute) - [last](https://reference.langchain.com/python/langchain-core/runnables/graph/NodeStyles/last.md) (attribute) - [last](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/last.md) (attribute): The last `Runnable` in the sequence. - [last_updated](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/last_updated.md) (attribute): Date the model was last updated (ISO 8601 format). - [latest_run](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/latest_run.md) (attribute) - [lc](https://reference.langchain.com/python/langchain-core/load/serializable/BaseSerialized/lc.md) (attribute): The version of the serialization format. - [lc_attributes](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/lc_attributes.md) (attribute): Attributes to be serialized - [lc_attributes](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/lc_attributes.md) (attribute) - [lc_attributes](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/lc_attributes.md) (attribute): List of attribute names that should be included in the serialized kwargs - [lc_attributes](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/lc_attributes.md) (attribute) - [lc_attributes](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/lc_attributes.md) (attribute) - [LC_AUTO_PREFIX](https://reference.langchain.com/python/langchain-core/utils/utils/LC_AUTO_PREFIX.md) (attribute): LangChain auto-generated ID prefix for messages and content blocks. - [LC_ID_PREFIX](https://reference.langchain.com/python/langchain-core/utils/utils/LC_ID_PREFIX.md) (attribute): Internal tracing/callback system identifier - [lc_secrets](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/lc_secrets.md) (attribute): A map of constructor argument names to secret ids - [LIKE](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/LIKE.md) (attribute) - [limit](https://reference.langchain.com/python/langchain-core/structured_query/StructuredQuery/limit.md) (attribute): Limit on the number of results. - [limit](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/limit.md) (attribute) - [LINEAR](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/LINEAR.md) (attribute) - [lines](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/lines.md) (attribute) - [llm_output](https://reference.langchain.com/python/langchain-core/exceptions/OutputParserException/llm_output.md) (attribute) - [llm_output](https://reference.langchain.com/python/langchain-core/outputs/llm_result/LLMResult/llm_output.md) (attribute): For arbitrary model provider-specific output - [llm_output](https://reference.langchain.com/python/langchain-core/outputs/chat_result/ChatResult/llm_output.md) (attribute): For arbitrary model provider-specific output - [loads](https://reference.langchain.com/python/langchain-core/runnables/utils/NonLocals/loads.md) (attribute) - [LOCALHOST_NAMES](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/LOCALHOST_NAMES.md) (attribute) - [lock](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/lock.md) (attribute) - [lock](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/lock.md) (attribute) - [log](https://reference.langchain.com/python/langchain-core/agents/AgentAction/log.md) (attribute): Additional information to log about the action - [log](https://reference.langchain.com/python/langchain-core/agents/AgentFinish/log.md) (attribute): Additional information to log about the return value - [log_missing_parent](https://reference.langchain.com/python/langchain-core/tracers/core/_TracerCore/log_missing_parent.md) (attribute) - [log_missing_parent](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/RootListenersTracer/log_missing_parent.md) (attribute): Whether to log a warning if the parent is missing. - [log_missing_parent](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/AsyncRootListenersTracer/log_missing_parent.md) (attribute): Whether to log a warning if the parent is missing. - [logged_eval_results](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/logged_eval_results.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/messages/utils/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/messages/ai/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/load/serializable/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/prompts/loading/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/vectorstores/utils/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/vectorstores/base/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/tracers/core/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/tracers/evaluation/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/tracers/langchain/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/tracers/event_stream/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/tracers/base/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/utils/mustache/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/utils/html/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/utils/function_calling/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/callbacks/manager/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/language_models/model_profile/logger.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-core/language_models/llms/logger.md) (attribute) - [logs](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState/logs.md) (attribute): Map of run names to sub-runs - [ls_embedding_model](https://reference.langchain.com/python/langchain-core/retrievers/LangSmithRetrieverParams/ls_embedding_model.md) (attribute): Embedding model. - [ls_embedding_provider](https://reference.langchain.com/python/langchain-core/retrievers/LangSmithRetrieverParams/ls_embedding_provider.md) (attribute): Embedding provider. - [ls_integration](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_integration.md) (attribute): Integration that created the trace. - [ls_max_tokens](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_max_tokens.md) (attribute): Max tokens for generation. - [ls_model_name](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_model_name.md) (attribute): Name of the model. - [ls_model_type](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_model_type.md) (attribute): Type of the model - [ls_provider](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_provider.md) (attribute): Provider of the model. - [ls_retriever_name](https://reference.langchain.com/python/langchain-core/retrievers/LangSmithRetrieverParams/ls_retriever_name.md) (attribute): Retriever name. - [ls_stop](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_stop.md) (attribute): Stop words for generation. - [ls_temperature](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams/ls_temperature.md) (attribute): Temperature for generation. - [ls_vector_store_provider](https://reference.langchain.com/python/langchain-core/retrievers/LangSmithRetrieverParams/ls_vector_store_provider.md) (attribute): Vector store provider. - [LT](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/LT.md) (attribute) - [LTE](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/LTE.md) (attribute) - [mapper](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/mapper.md) (attribute) - [MARKDOWN_SPECIAL_CHARS](https://reference.langchain.com/python/langchain-core/runnables/graph_mermaid/MARKDOWN_SPECIAL_CHARS.md) (attribute) - [max](https://reference.langchain.com/python/langchain-core/runnables/retry/ExponentialJitterParams/max.md) (attribute): Maximum wait. - [max_attempt_number](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/max_attempt_number.md) (attribute): The maximum number of attempts to retry the Runnable. - [max_bucket_size](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/max_bucket_size.md) (attribute) - [max_concurrency](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/max_concurrency.md) (attribute): Maximum number of parallel calls to make - [max_input_tokens](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/max_input_tokens.md) (attribute): Maximum context window (tokens) - [max_length](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/max_length.md) (attribute): Max length for the prompt, beyond which examples are cut. - [max_output_tokens](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/max_output_tokens.md) (attribute): Maximum output tokens - [message](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGeneration/message.md) (attribute): The message output by the chat model. - [message](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGenerationChunk/message.md) (attribute): The message chunk output by the chat model. - [MESSAGE_COERCION_FAILURE](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/MESSAGE_COERCION_FAILURE.md) (attribute) - [message_log](https://reference.langchain.com/python/langchain-core/agents/AgentActionMessageLog/message_log.md) (attribute): Similar to log, this can be used to pass along extra information about what exact messages were predicted by the LLM before parsing out the `(tool,... - [MessagePromptTemplateT](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagePromptTemplateT.md) (attribute): Type variable for message prompt templates. - [messages](https://reference.langchain.com/python/langchain-core/agents/AgentAction/messages.md) (attribute): Return the messages that correspond to this action. - [messages](https://reference.langchain.com/python/langchain-core/agents/AgentStep/messages.md) (attribute): Messages that correspond to this observation. - [messages](https://reference.langchain.com/python/langchain-core/agents/AgentFinish/messages.md) (attribute): Messages that correspond to this observation. - [messages](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/messages.md) (attribute): A property or attribute that returns a list of messages - [messages](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory/messages.md) (attribute): A list of messages stored in memory. - [messages](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/messages.md) (attribute): List of messages. - [messages](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValueConcrete/messages.md) (attribute): Sequence of messages. - [messages](https://reference.langchain.com/python/langchain-core/chat_sessions/ChatSession/messages.md) (attribute): A sequence of the LangChain chat messages loaded from the source. - [messages](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/messages.md) (attribute): List of messages consisting of either message prompt templates or messages. - [messages](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/GenericFakeChatModel/messages.md) (attribute): Get an iterator over messages - [metadata](https://reference.langchain.com/python/langchain-core/retrievers/BaseRetriever/metadata.md) (attribute): Optional metadata associated with the retriever - [metadata](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/metadata.md) (attribute) - [metadata](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/metadata.md) (attribute): Metadata to be used for tracing. - [metadata](https://reference.langchain.com/python/langchain-core/runnables/graph/Node/metadata.md) (attribute): Optional metadata for the node. - [metadata](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/metadata.md) (attribute): Metadata for this call and any sub-calls (e.g - [metadata](https://reference.langchain.com/python/langchain-core/runnables/schema/BaseStreamEvent/metadata.md) (attribute): Metadata associated with the `Runnable` that generated this event - [metadata](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/metadata.md) (attribute): Key-value pairs of metadata for the run. - [metadata](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/metadata.md) (attribute): The metadata associated with the run. - [metadata](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/metadata.md) (attribute): Optional metadata associated with the tool - [metadata](https://reference.langchain.com/python/langchain-core/documents/base/BaseMedia/metadata.md) (attribute): Arbitrary metadata associated with the content. - [metadata](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/metadata.md) (attribute) - [metadata](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/metadata.md) (attribute) - [metadata](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/metadata.md) (attribute): Metadata to add to the run trace. - [middle](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/middle.md) (attribute): The middle `Runnable` in the sequence. - [MILLISECONDS_IN_SECOND](https://reference.langchain.com/python/langchain-core/tracers/stdout/MILLISECONDS_IN_SECOND.md) (attribute) - [mime_type](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/mime_type.md) (attribute): MIME type of the image - [mime_type](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/mime_type.md) (attribute): MIME type of the video - [mime_type](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/mime_type.md) (attribute): MIME type of the audio - [mime_type](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/mime_type.md) (attribute): MIME type of the file - [mime_type](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/mime_type.md) (attribute): MIME type of the file - [mime_type](https://reference.langchain.com/python/langchain-core/language_models/_utils/ParsedDataUri/mime_type.md) (attribute) - [mimetype](https://reference.langchain.com/python/langchain-core/documents/base/Blob/mimetype.md) (attribute): MIME type, not to be confused with a file extension. - [mode](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/mode.md) (attribute) - [MODEL_AUTHENTICATION](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/MODEL_AUTHENTICATION.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/retrievers/BaseRetriever/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/prompts/few_shot/_FewShotPromptTemplateMixin/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSerializable/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/documents/base/Blob/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/model_config.md) (attribute) - [model_config](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/model_config.md) (attribute) - [MODEL_NOT_FOUND](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/MODEL_NOT_FOUND.md) (attribute) - [MODEL_RATE_LIMIT](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/MODEL_RATE_LIMIT.md) (attribute) - [ModelProfileRegistry](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfileRegistry.md) (attribute): Registry mapping model identifiers or names to their ModelProfile. - [MONOTONE_X](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/MONOTONE_X.md) (attribute) - [MONOTONE_Y](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/MONOTONE_Y.md) (attribute) - [n_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder/n_messages.md) (attribute): Maximum number of messages to include - [name](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCall/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCallChunk/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk/name.md) (attribute): The name of the tool to be called. - [name](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/name.md) (attribute): An optional name for the message - [name](https://reference.langchain.com/python/langchain-core/messages/function/FunctionMessage/name.md) (attribute): The name of the function that was executed. - [name](https://reference.langchain.com/python/langchain-core/load/serializable/BaseSerialized/name.md) (attribute): The name of the object. - [name](https://reference.langchain.com/python/langchain-core/runnables/graph/Node/name.md) (attribute): The name of the node. - [name](https://reference.langchain.com/python/langchain-core/runnables/utils/IsLocalDict/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableField/name.md) (attribute): The name of the field. - [name](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption/name.md) (attribute): The name of the field. - [name](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption/name.md) (attribute): The name of the field. - [name](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec/name.md) (attribute): The name of the field. - [name](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/name.md) (attribute): The name of the `Runnable` - [name](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSerializable/name.md) (attribute): The name of the `Runnable` - [name](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-core/runnables/schema/StandardStreamEvent/name.md) (attribute): The name of the `Runnable` that generated the event. - [name](https://reference.langchain.com/python/langchain-core/runnables/schema/CustomStreamEvent/name.md) (attribute): User defined name for the event. - [name](https://reference.langchain.com/python/langchain-core/tracers/stdout/FunctionCallbackHandler/name.md) (attribute): The name of the tracer - [name](https://reference.langchain.com/python/langchain-core/tracers/stdout/ConsoleCallbackHandler/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/name.md) (attribute): Name of the object being run. - [name](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState/name.md) (attribute): Name of the object being run. - [name](https://reference.langchain.com/python/langchain-core/tracers/run_collector/RunCollectorCallbackHandler/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/name.md) (attribute): The name of the run. - [name](https://reference.langchain.com/python/langchain-core/utils/function_calling/FunctionDescription/name.md) (attribute): The name of the function. - [name](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/name.md) (attribute): The unique name of the tool that clearly communicates its purpose. - [name](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/name.md) (attribute): Human-readable model name. - [namespace](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/namespace.md) (attribute) - [namespace](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/namespace.md) (attribute) - [NAMESPACE_UUID](https://reference.langchain.com/python/langchain-core/indexing/api/NAMESPACE_UUID.md) (attribute) - [NATURAL](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/NATURAL.md) (attribute) - [NE](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/NE.md) (attribute) - [NIN](https://reference.langchain.com/python/langchain-core/structured_query/Comparator/NIN.md) (attribute) - [NO_DEFAULT](https://reference.langchain.com/python/langchain-core/utils/pydantic/NO_DEFAULT.md) (attribute) - [nodes](https://reference.langchain.com/python/langchain-core/runnables/graph/LabelsDict/nodes.md) (attribute): Labels for nodes. - [nodes](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/nodes.md) (attribute) - [nonlocals](https://reference.langchain.com/python/langchain-core/runnables/utils/FunctionNonLocals/nonlocals.md) (attribute) - [NOT](https://reference.langchain.com/python/langchain-core/structured_query/Operator/NOT.md) (attribute) - [num_added](https://reference.langchain.com/python/langchain-core/indexing/api/IndexingResult/num_added.md) (attribute): Number of added documents. - [num_deleted](https://reference.langchain.com/python/langchain-core/indexing/api/IndexingResult/num_deleted.md) (attribute): Number of deleted documents. - [num_deleted](https://reference.langchain.com/python/langchain-core/indexing/base/DeleteResponse/num_deleted.md) (attribute): The number of items that were successfully deleted - [num_failed](https://reference.langchain.com/python/langchain-core/indexing/base/DeleteResponse/num_failed.md) (attribute): The number of items that failed to be deleted. - [num_skipped](https://reference.langchain.com/python/langchain-core/indexing/api/IndexingResult/num_skipped.md) (attribute): Number of skipped documents because they were already up to date. - [num_updated](https://reference.langchain.com/python/langchain-core/indexing/api/IndexingResult/num_updated.md) (attribute): Number of updated documents because they were not up to date. - [observation](https://reference.langchain.com/python/langchain-core/exceptions/OutputParserException/observation.md) (attribute) - [observation](https://reference.langchain.com/python/langchain-core/agents/AgentStep/observation.md) (attribute): The result of the `AgentAction`. - [offset](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/offset.md) (attribute) - [OLD_CORE_NAMESPACES_MAPPING](https://reference.langchain.com/python/langchain-core/load/mapping/OLD_CORE_NAMESPACES_MAPPING.md) (attribute) - [open_weights](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/open_weights.md) (attribute): Whether the model weights are openly available. - [operator](https://reference.langchain.com/python/langchain-core/structured_query/Operation/operator.md) (attribute): The operator to use. - [ops](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunLogPatch/ops.md) (attribute): List of `JSONPatch` operations, which describe how to create the run state from an empty dict - [optional](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder/optional.md) (attribute): Whether `format_messages` must be provided - [optional_variables](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/optional_variables.md) (attribute): A list of the names of the variables for placeholder or `MessagePlaceholder` that are optional - [options](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption/options.md) (attribute): The options for the field. - [options](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption/options.md) (attribute): The options for the field. - [OR](https://reference.langchain.com/python/langchain-core/structured_query/Operator/OR.md) (attribute) - [order_map](https://reference.langchain.com/python/langchain-core/tracers/core/_TracerCore/order_map.md) (attribute): Map of run ID to (trace_id, dotted_order) - [Other](https://reference.langchain.com/python/langchain-core/runnables/base/Other.md) (attribute) - [output](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/output.md) (attribute): Output of the executed tool. - [output](https://reference.langchain.com/python/langchain-core/runnables/schema/EventData/output.md) (attribute): The output of the `Runnable` that generated the event - [Output](https://reference.langchain.com/python/langchain-core/runnables/utils/Output.md) (attribute) - [output_messages_key](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/output_messages_key.md) (attribute): Must be specified if the base `Runnable` returns a `dict` as output - [output_parser](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/output_parser.md) (attribute): How to parse the output of calling an LLM on this formatted prompt. - [OUTPUT_PARSING_FAILURE](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode/OUTPUT_PARSING_FAILURE.md) (attribute) - [output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/output_schema.md) (attribute): Output schema - [output_token_details](https://reference.langchain.com/python/langchain-core/messages/ai/UsageMetadata/output_token_details.md) (attribute): Breakdown of output token counts - [output_tokens](https://reference.langchain.com/python/langchain-core/messages/ai/UsageMetadata/output_tokens.md) (attribute): Count of output (or completion) tokens - [output_version](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/output_version.md) (attribute): Version of `AIMessage` output format to store in message content - [OutputParserLike](https://reference.langchain.com/python/langchain-core/output_parsers/base/OutputParserLike.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/OutputType.md) (attribute): Return the output type of the prompt. - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/OutputType.md) (attribute): Output Type - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/OutputType.md) (attribute): The type of the output of the `Runnable`. - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/OutputType.md) (attribute): The type of the output of this `Runnable` as a type annotation. - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/OutputType.md) (attribute) - [OutputType](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic/PydanticOutputParser/OutputType.md) (attribute): Return the Pydantic model. - [OutputType](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseGenerationOutputParser/OutputType.md) (attribute): Return the output type for the parser. - [OutputType](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/OutputType.md) (attribute): Return the output type for the parser - [OutputType](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/OutputType.md) (attribute): Get the output type for this `Runnable`. - [OutputType](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/OutputType.md) (attribute): Get the output type for this `Runnable`. - [P](https://reference.langchain.com/python/langchain-core/runnables/config/P.md) (attribute) - [PACKAGE_DIR](https://reference.langchain.com/python/langchain-core/_api/path/PACKAGE_DIR.md) (attribute) - [page_content](https://reference.langchain.com/python/langchain-core/documents/base/Document/page_content.md) (attribute): String text. - [parameters](https://reference.langchain.com/python/langchain-core/utils/function_calling/FunctionDescription/parameters.md) (attribute): The parameters of the function. - [parent_ids](https://reference.langchain.com/python/langchain-core/runnables/schema/BaseStreamEvent/parent_ids.md) (attribute): A list of the parent IDs associated with this event - [parent_map](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/parent_map.md) (attribute) - [parent_run_id](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/parent_run_id.md) (attribute): The ID of the parent run. - [parent_run_id](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/parent_run_id.md) (attribute) - [parent_run_id](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/parent_run_id.md) (attribute) - [parent_run_manager](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup/parent_run_manager.md) (attribute) - [parent_run_manager](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup/parent_run_manager.md) (attribute) - [parser](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XMLOutputParser/parser.md) (attribute): Parser to use for XML parsing - [partial_variables](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/partial_variables.md) (attribute): A dictionary of the partial variables the prompt template carries - [path](https://reference.langchain.com/python/langchain-core/documents/base/Blob/path.md) (attribute): Location where the original content was found. - [pattern](https://reference.langchain.com/python/langchain-core/output_parsers/list/NumberedListOutputParser/pattern.md) (attribute): The pattern to match a numbered list item. - [pattern](https://reference.langchain.com/python/langchain-core/output_parsers/list/MarkdownListOutputParser/pattern.md) (attribute): The pattern to match a Markdown list item. - [pdf_inputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/pdf_inputs.md) (attribute): Whether [PDF inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [pdf_tool_message](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/pdf_tool_message.md) (attribute): Whether PDFs can be included in tool messages. - [prefix](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/prefix.md) (attribute): A prompt template string to put before the examples. - [prefix](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/prefix.md) (attribute): A `PromptTemplate` to put before the examples. - [prefix_keys](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives/prefix_keys.md) (attribute): Whether to prefix configurable fields of each alternative with a namespace of the form ==, e.g - [PREFIXES_TO_IGNORE](https://reference.langchain.com/python/langchain-core/utils/html/PREFIXES_TO_IGNORE.md) (attribute) - [PREFIXES_TO_IGNORE_REGEX](https://reference.langchain.com/python/langchain-core/utils/html/PREFIXES_TO_IGNORE_REGEX.md) (attribute) - [PRIVATE_IP_RANGES](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/PRIVATE_IP_RANGES.md) (attribute) - [profile](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/profile.md) (attribute): Profile detailing model capabilities - [project_name](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/project_name.md) (attribute): The LangSmith project name to be organize eval chain runs under. - [project_name](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/project_name.md) (attribute) - [prompt](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/prompt.md) (attribute): String prompt template. - [prompt](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/prompt.md) (attribute): Prompt template. - [PromptTemplateFormat](https://reference.langchain.com/python/langchain-core/prompts/string/PromptTemplateFormat.md) (attribute) - [PROVIDER_TRANSLATORS](https://reference.langchain.com/python/langchain-core/messages/block_translators/PROVIDER_TRANSLATORS.md) (attribute): Map model provider names to translator functions - [pts](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/_EdgeViewer/pts.md) (attribute) - [pull_parser](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/pull_parser.md) (attribute) - [PYDANTIC_MAJOR_VERSION](https://reference.langchain.com/python/langchain-core/utils/pydantic/PYDANTIC_MAJOR_VERSION.md) (attribute) - [PYDANTIC_MINOR_VERSION](https://reference.langchain.com/python/langchain-core/utils/pydantic/PYDANTIC_MINOR_VERSION.md) (attribute) - [pydantic_object](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic/PydanticOutputParser/pydantic_object.md) (attribute): The Pydantic model to parse. - [pydantic_object](https://reference.langchain.com/python/langchain-core/output_parsers/json/JsonOutputParser/pydantic_object.md) (attribute): The Pydantic object to use for validation - [pydantic_schema](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticOutputFunctionsParser/pydantic_schema.md) (attribute): The Pydantic schema to parse the output with - [PYDANTIC_VERSION](https://reference.langchain.com/python/langchain-core/utils/pydantic/PYDANTIC_VERSION.md) (attribute) - [PydanticBaseModel](https://reference.langchain.com/python/langchain-core/utils/pydantic/PydanticBaseModel.md) (attribute) - [PYPPETEER](https://reference.langchain.com/python/langchain-core/runnables/graph/MermaidDrawMethod/PYPPETEER.md) (attribute): Uses Pyppeteer to render the graph - [PYTHON_TO_JSON_TYPES](https://reference.langchain.com/python/langchain-core/utils/function_calling/PYTHON_TO_JSON_TYPES.md) (attribute) - [query](https://reference.langchain.com/python/langchain-core/structured_query/StructuredQuery/query.md) (attribute): Query string. - [query](https://reference.langchain.com/python/langchain-core/tools/retriever/RetrieverInput/query.md) (attribute) - [raise_error](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/raise_error.md) (attribute): Whether to raise an error if an exception occurs. - [rate_limiter](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/rate_limiter.md) (attribute): An optional rate limiter to use for limiting the number of requests. - [reasoning](https://reference.langchain.com/python/langchain-core/messages/content/ReasoningContentBlock/reasoning.md) (attribute): Reasoning text - [reasoning](https://reference.langchain.com/python/langchain-core/messages/ai/OutputTokenDetails/reasoning.md) (attribute): Reasoning output tokens - [reasoning_output](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/reasoning_output.md) (attribute): Whether the model supports [reasoning / chain-of-thought](https://docs.langchain.com/oss/python/langchain/models#reasoning) - [receive_stream](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/receive_stream.md) (attribute) - [receive_stream](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/receive_stream.md) (attribute) - [records](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/records.md) (attribute) - [recursion_limit](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/recursion_limit.md) (attribute): Maximum number of times a call can recurse - [release_date](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/release_date.md) (attribute): Model release date (ISO 8601 format, e.g., `'2025-06-01'`). - [repr](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedNotImplemented/repr.md) (attribute): The representation of the object. - [requests_per_second](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/requests_per_second.md) (attribute) - [response_format](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/response_format.md) (attribute): The tool response format - [response_metadata](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/response_metadata.md) (attribute): Currently inherited from `BaseMessage`, but not used. - [response_metadata](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/response_metadata.md) (attribute): Examples: response headers, logprobs, token counts, model name. - [responses](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeListLLM/responses.md) (attribute): List of responses to return in order. - [responses](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeMessagesListChatModel/responses.md) (attribute): List of responses to **cycle** through in order. - [responses](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel/responses.md) (attribute): List of responses to **cycle** through in order. - [RetrieverInput](https://reference.langchain.com/python/langchain-core/retrievers/RetrieverInput.md) (attribute) - [RetrieverLike](https://reference.langchain.com/python/langchain-core/retrievers/RetrieverLike.md) (attribute) - [RetrieverOutput](https://reference.langchain.com/python/langchain-core/retrievers/RetrieverOutput.md) (attribute) - [RetrieverOutputLike](https://reference.langchain.com/python/langchain-core/retrievers/RetrieverOutputLike.md) (attribute) - [retry_exception_types](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/retry_exception_types.md) (attribute): The exception types to retry on - [return_direct](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/return_direct.md) (attribute): Whether to return the tool's output directly - [return_id](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputToolsParser/return_id.md) (attribute): Whether to return the tool call id. - [RETURN_VAL_TYPE](https://reference.langchain.com/python/langchain-core/caches/RETURN_VAL_TYPE.md) (attribute) - [return_values](https://reference.langchain.com/python/langchain-core/agents/AgentFinish/return_values.md) (attribute): Dictionary of return values. - [role](https://reference.langchain.com/python/langchain-core/messages/chat/ChatMessage/role.md) (attribute): The speaker / role of the Message. - [role](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatMessagePromptTemplate/role.md) (attribute): Role of the message. - [root_event_filter](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/root_event_filter.md) (attribute) - [root_id](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/root_id.md) (attribute) - [root_id](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/RootListenersTracer/root_id.md) (attribute) - [root_id](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/AsyncRootListenersTracer/root_id.md) (attribute) - [run](https://reference.langchain.com/python/langchain-core/outputs/llm_result/LLMResult/run.md) (attribute): List of metadata info for model call for each input - [Run](https://reference.langchain.com/python/langchain-core/tracers/schemas/Run.md) (attribute) - [run_collector_var](https://reference.langchain.com/python/langchain-core/tracers/context/run_collector_var.md) (attribute) - [run_has_token_event_map](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/run_has_token_event_map.md) (attribute) - [run_id](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/run_id.md) (attribute): Unique identifier for the tracer run for this call - [run_id](https://reference.langchain.com/python/langchain-core/runnables/schema/BaseStreamEvent/run_id.md) (attribute): An randomly generated ID to keep track of the execution of the given `Runnable` - [run_id](https://reference.langchain.com/python/langchain-core/outputs/run_info/RunInfo/run_id.md) (attribute): A unique identifier for the model or chain run. - [run_id](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/run_id.md) (attribute) - [run_inline](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/run_inline.md) (attribute) - [run_inline](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler/run_inline.md) (attribute): Whether to run the callback inline. - [run_map](https://reference.langchain.com/python/langchain-core/tracers/core/_TracerCore/run_map.md) (attribute): Map of run ID to run - [run_map](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/run_map.md) (attribute) - [run_name](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/run_name.md) (attribute): Name for the tracer run for this call - [run_type](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/run_type.md) (attribute): The type of the run. - [runnable](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/runnable.md) (attribute): The `Runnable` to run first. - [RunnableMap](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableMap.md) (attribute) - [runnables](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/runnables.md) (attribute): Iterator over the `Runnable` and its fallbacks. - [runnables](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/runnables.md) (attribute) - [safetee](https://reference.langchain.com/python/langchain-core/utils/iter/safetee.md) (attribute) - [schema_](https://reference.langchain.com/python/langchain-core/prompts/structured/StructuredPrompt/schema_.md) (attribute): Schema for the structured prompt. - [SCHEMA_FORMAT_TYPE](https://reference.langchain.com/python/langchain-core/tracers/core/SCHEMA_FORMAT_TYPE.md) (attribute) - [search_kwargs](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/search_kwargs.md) (attribute): Keyword arguments to pass to the search function. - [search_type](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/search_type.md) (attribute): Type of search to perform. - [secrets_from_env](https://reference.langchain.com/python/langchain-core/load/load/Reviver/secrets_from_env.md) (attribute) - [secrets_map](https://reference.langchain.com/python/langchain-core/load/load/Reviver/secrets_map.md) (attribute) - [send_stream](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/send_stream.md) (attribute) - [send_stream](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/send_stream.md) (attribute) - [send_to_llm](https://reference.langchain.com/python/langchain-core/exceptions/OutputParserException/send_to_llm.md) (attribute) - [SEPARATOR](https://reference.langchain.com/python/langchain-core/_api/path/SEPARATOR.md) (attribute) - [SERIALIZABLE_MAPPING](https://reference.langchain.com/python/langchain-core/load/mapping/SERIALIZABLE_MAPPING.md) (attribute) - [SimpleJsonOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/json/SimpleJsonOutputParser.md) (attribute) - [size](https://reference.langchain.com/python/langchain-core/embeddings/fake/FakeEmbeddings/size.md) (attribute): The size of the embedding vector. - [size](https://reference.langchain.com/python/langchain-core/embeddings/fake/DeterministicFakeEmbedding/size.md) (attribute): The size of the embedding vector. - [skip_unfinished](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/skip_unfinished.md) (attribute): Whether to skip runs that are not finished or raised an error. - [sleep](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeListLLM/sleep.md) (attribute): Sleep time in seconds between responses - [sleep](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeMessagesListChatModel/sleep.md) (attribute): Sleep time in seconds between responses. - [sleep](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel/sleep.md) (attribute) - [source](https://reference.langchain.com/python/langchain-core/runnables/graph/Edge/source.md) (attribute): The source node id. - [source](https://reference.langchain.com/python/langchain-core/runnables/utils/GetLambdaSource/source.md) (attribute) - [source](https://reference.langchain.com/python/langchain-core/documents/base/Blob/source.md) (attribute): The source location of the blob as string if known otherwise none - [source_type](https://reference.langchain.com/python/langchain-core/language_models/_utils/ParsedDataUri/source_type.md) (attribute) - [splits](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/splits.md) (attribute) - [SSRFProtectedHttpsUrl](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/SSRFProtectedHttpsUrl.md) (attribute): A Pydantic HttpUrl with SSRF protection that only allows HTTPS - [SSRFProtectedHttpsUrlStr](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/SSRFProtectedHttpsUrlStr.md) (attribute): A string type with SSRF protection that only allows HTTPS URLs - [SSRFProtectedUrl](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/SSRFProtectedUrl.md) (attribute): A Pydantic HttpUrl type with built-in SSRF protection - [SSRFProtectedUrlRelaxed](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/SSRFProtectedUrlRelaxed.md) (attribute): A Pydantic HttpUrl with relaxed SSRF protection (allows private IPs) - [start_index](https://reference.langchain.com/python/langchain-core/messages/content/Citation/start_index.md) (attribute): Start index of the **response text** (`TextContentBlock.text`). - [start_time](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/start_time.md) (attribute): ISO-8601 timestamp of when the run started. - [state](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunLog/state.md) (attribute): Current state of the log, obtained from applying all ops in sequence. - [status](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/status.md) (attribute): Status of the tool invocation. - [status](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/status.md) (attribute): Execution status of the server-side tool. - [status](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/status.md) (attribute): Model status (e.g., `'active'`, `'deprecated'`). - [STEP](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/STEP.md) (attribute) - [STEP_AFTER](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/STEP_AFTER.md) (attribute) - [STEP_BEFORE](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle/STEP_BEFORE.md) (attribute) - [steps](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/steps.md) (attribute): All the `Runnable`s that make up the sequence in order. - [steps__](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/steps__.md) (attribute) - [store](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/store.md) (attribute) - [store](https://reference.langchain.com/python/langchain-core/indexing/in_memory/InMemoryDocumentIndex/store.md) (attribute) - [store](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/store.md) (attribute) - [stores](https://reference.langchain.com/python/langchain-core/runnables/utils/NonLocals/stores.md) (attribute) - [streamed_output](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/streamed_output.md) (attribute): List of output chunks streamed by this run, if available. - [streamed_output](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState/streamed_output.md) (attribute): List of output chunks streamed by `Runnable.stream()` - [streamed_output_str](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/streamed_output_str.md) (attribute): List of LLM tokens streamed by this run, if applicable. - [strict](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputToolsParser/strict.md) (attribute): Whether to allow non-JSON-compliant strings - [strict](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonOutputFunctionsParser/strict.md) (attribute): Whether to allow non-JSON-compliant strings - [structured_output](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/structured_output.md) (attribute): Whether the model supports a native [structured output](https://docs.langchain.com/oss/python/langchain/models#structured-outputs) feature - [structured_output_kwargs](https://reference.langchain.com/python/langchain-core/prompts/structured/StructuredPrompt/structured_output_kwargs.md) (attribute) - [succeeded](https://reference.langchain.com/python/langchain-core/indexing/base/UpsertResponse/succeeded.md) (attribute): The IDs that were successfully indexed. - [succeeded](https://reference.langchain.com/python/langchain-core/indexing/base/DeleteResponse/succeeded.md) (attribute): The IDs that were successfully deleted - [suffix](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/suffix.md) (attribute): A prompt template string to put after the examples. - [suffix](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/suffix.md) (attribute): A `PromptTemplate` to put after the examples. - [SUFFIXES_TO_IGNORE](https://reference.langchain.com/python/langchain-core/utils/html/SUFFIXES_TO_IGNORE.md) (attribute) - [SUFFIXES_TO_IGNORE_REGEX](https://reference.langchain.com/python/langchain-core/utils/html/SUFFIXES_TO_IGNORE_REGEX.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/indexing/api/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/runnables/config/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/runnables/retry/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/tracers/log_stream/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/tracers/_compat/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/tracers/_streaming/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/tracers/event_stream/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/utils/aiter/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/utils/iter/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/callbacks/manager/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/_api/beta_decorator/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/_api/deprecation/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/output_parsers/base/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/output_parsers/list/T.md) (attribute) - [T](https://reference.langchain.com/python/langchain-core/language_models/_utils/T.md) (attribute) - [tags](https://reference.langchain.com/python/langchain-core/retrievers/BaseRetriever/tags.md) (attribute): Optional list of tags associated with the retriever - [tags](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/tags.md) (attribute): Tags to be used for tracing. - [tags](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig/tags.md) (attribute): Tags for this call and any sub-calls (e.g - [tags](https://reference.langchain.com/python/langchain-core/runnables/schema/BaseStreamEvent/tags.md) (attribute): Tags associated with the `Runnable` that generated this event - [tags](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/tags.md) (attribute): List of tags for the run. - [tags](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/tags.md) (attribute) - [tags](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/tags.md) (attribute): The tags associated with the run. - [tags](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/tags.md) (attribute): Optional list of tags associated with the tool - [tags](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/tags.md) (attribute) - [tags](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/tags.md) (attribute) - [tags](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XMLOutputParser/tags.md) (attribute): Tags to tell the LLM to expect in the XML output - [tags](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/tags.md) (attribute): Tags to add to the run trace. - [target](https://reference.langchain.com/python/langchain-core/runnables/graph/Edge/target.md) (attribute): The target node id. - [TBaseModel](https://reference.langchain.com/python/langchain-core/utils/pydantic/TBaseModel.md) (attribute) - [TBaseModel](https://reference.langchain.com/python/langchain-core/output_parsers/json/TBaseModel.md) (attribute) - [temperature](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/temperature.md) (attribute): Whether the model supports a temperature parameter. - [template](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/template.md) (attribute): The prompt template. - [template](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/template.md) (attribute) - [template](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/template.md) (attribute): Template for the prompt. - [template_format](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/template_format.md) (attribute): The format of the prompt template - [template_format](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/template_format.md) (attribute): The format of the prompt template - [template_format](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/template_format.md) (attribute) - [template_format](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/template_format.md) (attribute): The format of the prompt template - [template_format](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/template_format.md) (attribute): The format of the prompt template - [text](https://reference.langchain.com/python/langchain-core/prompt_values/StringPromptValue/text.md) (attribute): Prompt text. - [text](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock/text.md) (attribute): Block text. - [text](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/text.md) (attribute): Plaintext content - [text](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/text.md) (attribute): Get the text content of the message as a string - [text](https://reference.langchain.com/python/langchain-core/prompts/chat/_TextTemplateParam/text.md) (attribute) - [text](https://reference.langchain.com/python/langchain-core/outputs/generation/Generation/text.md) (attribute): Generated text output. - [text](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGeneration/text.md) (attribute): The text contents of the output message - [text_inputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/text_inputs.md) (attribute): Whether text inputs are supported. - [text_outputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/text_outputs.md) (attribute): Whether text outputs are supported. - [thing](https://reference.langchain.com/python/langchain-core/utils/aiter/aclosing/thing.md) (attribute) - [TIMEOUT](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/TIMEOUT.md) (attribute) - [title](https://reference.langchain.com/python/langchain-core/messages/content/Citation/title.md) (attribute): Source document title - [title](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/title.md) (attribute): Title of the text data, e.g., the title of a document. - [tool](https://reference.langchain.com/python/langchain-core/agents/AgentAction/tool.md) (attribute): The name of the `Tool` to execute. - [tool_call_chunks](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/tool_call_chunks.md) (attribute): If provided, tool call chunks associated with the message. - [tool_call_id](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/tool_call_id.md) (attribute): Tool call that this message is responding to. - [tool_call_id](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/tool_call_id.md) (attribute): ID of the corresponding server tool call. - [tool_call_id](https://reference.langchain.com/python/langchain-core/runnables/schema/EventData/tool_call_id.md) (attribute): The tool call ID associated with the tool execution - [tool_call_id](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo/tool_call_id.md) (attribute): The tool call ID associated with the run. - [tool_call_schema](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/tool_call_schema.md) (attribute): Get the schema for tool calls, excluding injected arguments. - [tool_calling](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/tool_calling.md) (attribute): Whether the model supports [tool calling](https://docs.langchain.com/oss/python/langchain/models#tool-calling) - [tool_calls](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/tool_calls.md) (attribute): If present, tool calls associated with the message. - [tool_choice](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/tool_choice.md) (attribute): Whether the model supports [tool choice](https://docs.langchain.com/oss/python/langchain/models#forcing-tool-calls) - [tool_input](https://reference.langchain.com/python/langchain-core/agents/AgentAction/tool_input.md) (attribute): The input to pass in to the `Tool`. - [TOOL_MESSAGE_BLOCK_TYPES](https://reference.langchain.com/python/langchain-core/tools/base/TOOL_MESSAGE_BLOCK_TYPES.md) (attribute) - [tools](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/PydanticToolsParser/tools.md) (attribute): The tools to parse. - [ToolsRenderer](https://reference.langchain.com/python/langchain-core/tools/render/ToolsRenderer.md) (attribute) - [top_k](https://reference.langchain.com/python/langchain-core/indexing/in_memory/InMemoryDocumentIndex/top_k.md) (attribute) - [total_tokens](https://reference.langchain.com/python/langchain-core/messages/ai/UsageMetadata/total_tokens.md) (attribute): Total token count - [traced_runs](https://reference.langchain.com/python/langchain-core/tracers/run_collector/RunCollectorCallbackHandler/traced_runs.md) (attribute) - [tracing_callback_var](https://reference.langchain.com/python/langchain-core/tracers/context/tracing_callback_var.md) (attribute) - [tracing_v2_callback_var](https://reference.langchain.com/python/langchain-core/tracers/context/tracing_v2_callback_var.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/agents/AgentAction/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/agents/AgentActionMessageLog/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/agents/AgentFinish/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/prompt_values/StringPromptValue/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/prompt_values/ImagePromptValue/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValueConcrete/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessageChunk/type.md) (attribute) - [type](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCall/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCallChunk/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/content/Citation/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardAnnotation/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk/type.md) (attribute): Used for serialization. - [type](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult/type.md) (attribute): Used for discrimination. - [type](https://reference.langchain.com/python/langchain-core/messages/content/ReasoningContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardContentBlock/type.md) (attribute): Type of the content block - [type](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/type.md) (attribute): The type of the message (used for deserialization). - [type](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/type.md) (attribute): The type of the message (used for deserialization). - [type](https://reference.langchain.com/python/langchain-core/messages/human/HumanMessage/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/human/HumanMessageChunk/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/modifier/RemoveMessage/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/system/SystemMessage/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/system/SystemMessageChunk/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/type.md) (attribute): The type of the message - [type](https://reference.langchain.com/python/langchain-core/messages/chat/ChatMessage/type.md) (attribute): The type of the message (used during serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/chat/ChatMessageChunk/type.md) (attribute): The type of the message (used during serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/function/FunctionMessage/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/messages/function/FunctionMessageChunk/type.md) (attribute): The type of the message (used for serialization). - [type](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedConstructor/type.md) (attribute): The type of the object - [type](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedSecret/type.md) (attribute): The type of the object - [type](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedNotImplemented/type.md) (attribute): The type of the object - [type](https://reference.langchain.com/python/langchain-core/outputs/llm_result/LLMResult/type.md) (attribute): Type is used exclusively for serialization purposes. - [type](https://reference.langchain.com/python/langchain-core/outputs/generation/Generation/type.md) (attribute): Type is used exclusively for serialization purposes - [type](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGeneration/type.md) (attribute): Type is used exclusively for serialization purposes. - [type](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGenerationChunk/type.md) (attribute): Type is used exclusively for serialization purposes. - [type](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry/type.md) (attribute): Type of the object being run, eg - [type](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState/type.md) (attribute): Type of the object being run, e.g - [type](https://reference.langchain.com/python/langchain-core/utils/function_calling/ToolDescription/type.md) (attribute): The type of the tool. - [type](https://reference.langchain.com/python/langchain-core/documents/base/Document/type.md) (attribute) - [type_to_loader_dict](https://reference.langchain.com/python/langchain-core/prompts/loading/type_to_loader_dict.md) (attribute) - [TypeBaseModel](https://reference.langchain.com/python/langchain-core/utils/pydantic/TypeBaseModel.md) (attribute) - [U](https://reference.langchain.com/python/langchain-core/runnables/retry/U.md) (attribute) - [updated_at](https://reference.langchain.com/python/langchain-core/indexing/base/_Record/updated_at.md) (attribute) - [url](https://reference.langchain.com/python/langchain-core/prompt_values/ImageURL/url.md) (attribute): URL of the image or base64-encoded image data. - [url](https://reference.langchain.com/python/langchain-core/messages/content/Citation/url.md) (attribute): URL of the document source. - [url](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock/url.md) (attribute): URL of the image. - [url](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock/url.md) (attribute): URL of the video. - [url](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock/url.md) (attribute): URL of the audio. - [url](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock/url.md) (attribute): URL of the plaintext. - [url](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock/url.md) (attribute): URL of the file. - [URL_BASE](https://reference.langchain.com/python/langchain-core/prompts/loading/URL_BASE.md) (attribute) - [usage_metadata](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/usage_metadata.md) (attribute): If present, usage metadata for a message, such as token counts - [usage_metadata](https://reference.langchain.com/python/langchain-core/callbacks/usage/UsageMetadataCallbackHandler/usage_metadata.md) (attribute) - [V](https://reference.langchain.com/python/langchain-core/stores/V.md) (attribute) - [valid_namespaces](https://reference.langchain.com/python/langchain-core/load/load/Reviver/valid_namespaces.md) (attribute) - [validate_template](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/validate_template.md) (attribute): Whether or not to try validating the template. - [validate_template](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/validate_template.md) (attribute): Whether or not to try validating the template. - [validate_template](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/validate_template.md) (attribute): Whether or not to try validating the template. - [validate_template](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/validate_template.md) (attribute): Whether or not to try validating the template. - [value](https://reference.langchain.com/python/langchain-core/structured_query/Comparison/value.md) (attribute): The value to compare to. - [value](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardAnnotation/value.md) (attribute): Provider-specific annotation data. - [value](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardContentBlock/value.md) (attribute): Provider-specific content data. - [var_child_runnable_config](https://reference.langchain.com/python/langchain-core/runnables/config/var_child_runnable_config.md) (attribute) - [variable_name](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder/variable_name.md) (attribute): Name of variable to use as messages. - [vectorstore](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/vectorstore.md) (attribute): VectorStore to use for retrieval. - [vectorstore](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/vectorstore.md) (attribute): VectorStore that contains information about examples. - [vectorstore_kwargs](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/vectorstore_kwargs.md) (attribute): Extra arguments passed to similarity_search function of the `VectorStore`. - [verbose](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/verbose.md) (attribute): Whether to log the tool's progress. - [verbose](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/verbose.md) (attribute): Whether to print out response text. - [VERSION](https://reference.langchain.com/python/langchain-core/version/VERSION.md) (attribute) - [video_inputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/video_inputs.md) (attribute): Whether [video inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [video_outputs](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile/video_outputs.md) (attribute): Whether [video outputs](https://docs.langchain.com/oss/python/langchain/models#multimodal) are supported. - [VST](https://reference.langchain.com/python/langchain-core/vectorstores/base/VST.md) (attribute) - [w](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/VertexViewer/w.md) (attribute): Width of the box. - [wait_exponential_jitter](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/wait_exponential_jitter.md) (attribute): Whether to add jitter to the exponential backoff. - [which](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives/which.md) (attribute): The `ConfigurableField` to use to choose between alternatives. - [XML_FORMAT_INSTRUCTIONS](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XML_FORMAT_INSTRUCTIONS.md) (attribute) - [xml_start_re](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/xml_start_re.md) (attribute) - [xml_started](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/xml_started.md) (attribute) #### Classs - [aclosing](https://reference.langchain.com/python/langchain-core/utils/aiter/aclosing.md) (class): Async context manager to wrap an `AsyncGenerator` that has a `aclose()` method - [AddableDict](https://reference.langchain.com/python/langchain-core/runnables/utils/AddableDict.md) (class): Dictionary that can be added to another dictionary. - [AgentAction](https://reference.langchain.com/python/langchain-core/agents/AgentAction.md) (class): Represents a request to execute an action by an agent - [AgentActionMessageLog](https://reference.langchain.com/python/langchain-core/agents/AgentActionMessageLog.md) (class): Representation of an action to be executed by an agent - [AgentFinish](https://reference.langchain.com/python/langchain-core/agents/AgentFinish.md) (class): Final return value of an `ActionAgent` - [AgentStep](https://reference.langchain.com/python/langchain-core/agents/AgentStep.md) (class): Result of running an `AgentAction`. - [AIMessage](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage.md) (class): Message from an AI - [AIMessageChunk](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk.md) (class): Message chunk from an AI (yielded when streaming). - [AIMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/AIMessagePromptTemplate.md) (class): AI message prompt template - [AsciiCanvas](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas.md) (class): Class for drawing in ASCII. - [AsyncBaseTracer](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer.md) (class): Async base interface for tracers. - [AsyncCallbackHandler](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler.md) (class): Base async callback handler. - [AsyncCallbackManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager.md) (class): Async callback manager that handles callbacks from LangChain. - [AsyncCallbackManagerForChainGroup](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup.md) (class): Async callback manager for the chain group. - [AsyncCallbackManagerForChainRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainRun.md) (class): Async callback manager for chain run. - [AsyncCallbackManagerForLLMRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForLLMRun.md) (class): Async callback manager for LLM run. - [AsyncCallbackManagerForRetrieverRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForRetrieverRun.md) (class): Async callback manager for retriever run. - [AsyncCallbackManagerForToolRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForToolRun.md) (class): Async callback manager for tool run. - [AsyncParentRunManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncParentRunManager.md) (class): Async parent run manager. - [AsyncRootListenersTracer](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/AsyncRootListenersTracer.md) (class): Async tracer that calls listeners on run start, end, and error. - [AsyncRunManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncRunManager.md) (class): Async run manager. - [AudioContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/AudioContentBlock.md) (class): Audio data - [BaseBlobParser](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseBlobParser.md) (class): Abstract interface for blob parsers - [BaseCache](https://reference.langchain.com/python/langchain-core/caches/BaseCache.md) (class): Interface for a caching layer for LLMs and Chat models - [BaseCallbackHandler](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackHandler.md) (class): Base callback handler. - [BaseCallbackManager](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager.md) (class): Base callback manager. - [BaseChatLoader](https://reference.langchain.com/python/langchain-core/chat_loaders/BaseChatLoader.md) (class): Base class for chat loaders. - [BaseChatMessageHistory](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory.md) (class): Abstract base class for storing chat message history - [BaseChatModel](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel.md) (class): Base class for chat models. - [BaseChatPromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate.md) (class): Base class for chat prompt templates. - [BaseCrossEncoder](https://reference.langchain.com/python/langchain-core/cross_encoders/BaseCrossEncoder.md) (class): Interface for cross encoder models. - [BaseCumulativeTransformOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/transform/BaseCumulativeTransformOutputParser.md) (class): Base class for an output parser that can handle streaming input. - [BaseDocumentCompressor](https://reference.langchain.com/python/langchain-core/documents/compressor/BaseDocumentCompressor.md) (class): Base class for document compressors - [BaseDocumentTransformer](https://reference.langchain.com/python/langchain-core/documents/transformers/BaseDocumentTransformer.md) (class): Abstract base class for document transformation - [BaseExampleSelector](https://reference.langchain.com/python/langchain-core/example_selectors/base/BaseExampleSelector.md) (class): Interface for selecting examples to include in prompts. - [BaseGenerationOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseGenerationOutputParser.md) (class): Base class to parse the output of an LLM call. - [BaseLanguageModel](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel.md) (class): Abstract base class for interfacing with language models - [BaseLLM](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM.md) (class): Base LLM abstract interface - [BaseLLMOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseLLMOutputParser.md) (class): Abstract base class for parsing the outputs of a model. - [BaseLoader](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseLoader.md) (class): Interface for document loader - [BaseMedia](https://reference.langchain.com/python/langchain-core/documents/base/BaseMedia.md) (class): Base class for content used in retrieval and data processing workflows - [BaseMessage](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage.md) (class): Base abstract message class - [BaseMessageChunk](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessageChunk.md) (class): Message chunk, which can be concatenated with other Message chunks. - [BaseMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate.md) (class): Base class for message prompt templates. - [BaseOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser.md) (class): Base class to parse the output of an LLM call - [BasePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate.md) (class): Base class for all prompt templates, returning a prompt. - [BaseRateLimiter](https://reference.langchain.com/python/langchain-core/rate_limiters/BaseRateLimiter.md) (class): Base class for rate limiters - [BaseRetriever](https://reference.langchain.com/python/langchain-core/retrievers/BaseRetriever.md) (class): Abstract base class for a document retrieval system - [BaseRunManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager.md) (class): Base class for run manager (a bound callback manager). - [BaseSerialized](https://reference.langchain.com/python/langchain-core/load/serializable/BaseSerialized.md) (class): Base class for serialized objects. - [BaseStore](https://reference.langchain.com/python/langchain-core/stores/BaseStore.md) (class): Abstract interface for a key-value store - [BaseStreamEvent](https://reference.langchain.com/python/langchain-core/runnables/schema/BaseStreamEvent.md) (class): Streaming event - [BaseStringMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate.md) (class): Base class for message prompt templates that use a string prompt template. - [BaseTool](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool.md) (class): Base class for all LangChain tools - [BaseToolkit](https://reference.langchain.com/python/langchain-core/tools/base/BaseToolkit.md) (class): Base class for toolkits containing related tools - [BaseTracer](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer.md) (class): Base interface for tracers. - [BaseTransformOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/transform/BaseTransformOutputParser.md) (class): Base class for an output parser that can handle streaming input. - [Blob](https://reference.langchain.com/python/langchain-core/documents/base/Blob.md) (class): Raw data abstraction for document loading and file processing - [BlobLoader](https://reference.langchain.com/python/langchain-core/document_loaders/blob_loaders/BlobLoader.md) (class): Abstract interface for blob loaders implementation - [Branch](https://reference.langchain.com/python/langchain-core/runnables/graph/Branch.md) (class): Branch in a graph. - [CallbackManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager.md) (class): Callback manager for LangChain. - [CallbackManagerForChainGroup](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup.md) (class): Callback manager for the chain group. - [CallbackManagerForChainRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainRun.md) (class): Callback manager for chain run. - [CallbackManagerForLLMRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForLLMRun.md) (class): Callback manager for LLM run. - [CallbackManagerForRetrieverRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForRetrieverRun.md) (class): Callback manager for retriever run. - [CallbackManagerForToolRun](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForToolRun.md) (class): Callback manager for tool run. - [CallbackManagerMixin](https://reference.langchain.com/python/langchain-core/callbacks/base/CallbackManagerMixin.md) (class): Mixin for callback manager. - [ChainManagerMixin](https://reference.langchain.com/python/langchain-core/callbacks/base/ChainManagerMixin.md) (class): Mixin for chain callbacks. - [ChatGeneration](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGeneration.md) (class): A single chat generation output - [ChatGenerationChunk](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGenerationChunk.md) (class): `ChatGeneration` chunk - [ChatMessage](https://reference.langchain.com/python/langchain-core/messages/chat/ChatMessage.md) (class): Message that can be assigned an arbitrary speaker (i.e - [ChatMessageChunk](https://reference.langchain.com/python/langchain-core/messages/chat/ChatMessageChunk.md) (class): Chat Message chunk. - [ChatMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatMessagePromptTemplate.md) (class): Chat message prompt template. - [ChatPromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate.md) (class): Prompt template for chat models - [ChatPromptValue](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue.md) (class): Chat prompt value - [ChatPromptValueConcrete](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValueConcrete.md) (class): Chat prompt value which explicitly lists out the message types it accepts - [ChatResult](https://reference.langchain.com/python/langchain-core/outputs/chat_result/ChatResult.md) (class): Use to represent the result of a chat model call with a single prompt - [ChatSession](https://reference.langchain.com/python/langchain-core/chat_sessions/ChatSession.md) (class): Chat Session - [ChevronError](https://reference.langchain.com/python/langchain-core/utils/mustache/ChevronError.md) (class): Custom exception for Chevron errors. - [Citation](https://reference.langchain.com/python/langchain-core/messages/content/Citation.md) (class): Annotation for citing data from a document - [CommaSeparatedListOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/list/CommaSeparatedListOutputParser.md) (class): Parse the output of a model to a comma-separated list. - [Comparator](https://reference.langchain.com/python/langchain-core/structured_query/Comparator.md) (class): Enumerator of the comparison operators. - [Comparison](https://reference.langchain.com/python/langchain-core/structured_query/Comparison.md) (class): Comparison to a value. - [ConfigurableField](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableField.md) (class): Field that can be configured by the user. - [ConfigurableFieldMultiOption](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldMultiOption.md) (class): Field that can be configured by the user with multiple default values. - [ConfigurableFieldSingleOption](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSingleOption.md) (class): Field that can be configured by the user with a default value. - [ConfigurableFieldSpec](https://reference.langchain.com/python/langchain-core/runnables/utils/ConfigurableFieldSpec.md) (class): Field that can be configured by the user - [ConsoleCallbackHandler](https://reference.langchain.com/python/langchain-core/tracers/stdout/ConsoleCallbackHandler.md) (class): Tracer that prints to the console. - [ContextOverflowError](https://reference.langchain.com/python/langchain-core/exceptions/ContextOverflowError.md) (class): Exception raised when input exceeds the model's context limit - [ContextThreadPoolExecutor](https://reference.langchain.com/python/langchain-core/runnables/config/ContextThreadPoolExecutor.md) (class): ThreadPoolExecutor that copies the context to the child thread. - [CurveStyle](https://reference.langchain.com/python/langchain-core/runnables/graph/CurveStyle.md) (class): Enum for different curve styles supported by Mermaid. - [CustomStreamEvent](https://reference.langchain.com/python/langchain-core/runnables/schema/CustomStreamEvent.md) (class): Custom stream event created by the user. - [DeleteResponse](https://reference.langchain.com/python/langchain-core/indexing/base/DeleteResponse.md) (class): A generic response for delete operation - [DeterministicFakeEmbedding](https://reference.langchain.com/python/langchain-core/embeddings/fake/DeterministicFakeEmbedding.md) (class): Deterministic fake embedding model for unit testing purposes - [DictPromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate.md) (class): Template represented by a dictionary - [Document](https://reference.langchain.com/python/langchain-core/documents/base/Document.md) (class): Class for storing a piece of text and associated metadata - [DocumentIndex](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex.md) (class): A document retriever that supports indexing operations - [DynamicRunnable](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable.md) (class): Serializable `Runnable` that can be dynamically configured - [Edge](https://reference.langchain.com/python/langchain-core/runnables/graph/Edge.md) (class): Edge in a graph. - [Embeddings](https://reference.langchain.com/python/langchain-core/embeddings/embeddings/Embeddings.md) (class): Interface for embedding models - [EmptyDict](https://reference.langchain.com/python/langchain-core/runnables/config/EmptyDict.md) (class): Empty dict type. - [ErrorCode](https://reference.langchain.com/python/langchain-core/exceptions/ErrorCode.md) (class): Error codes. - [EvaluatorCallbackHandler](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler.md) (class): Tracer that runs a run evaluator whenever a run is persisted. - [EventData](https://reference.langchain.com/python/langchain-core/runnables/schema/EventData.md) (class): Data associated with a streaming event. - [ExponentialJitterParams](https://reference.langchain.com/python/langchain-core/runnables/retry/ExponentialJitterParams.md) (class): Parameters for `tenacity.wait_exponential_jitter`. - [Expr](https://reference.langchain.com/python/langchain-core/structured_query/Expr.md) (class): Base class for all expressions. - [FakeChatModel](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeChatModel.md) (class): Fake Chat Model wrapper for testing purposes. - [FakeEmbeddings](https://reference.langchain.com/python/langchain-core/embeddings/fake/FakeEmbeddings.md) (class): Fake embedding model for unit testing purposes - [FakeListChatModel](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel.md) (class): Fake chat model for testing purposes. - [FakeListChatModelError](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModelError.md) (class): Fake error for testing purposes. - [FakeListLLM](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeListLLM.md) (class): Fake LLM for testing purposes. - [FakeListLLMError](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeListLLMError.md) (class): Fake error for testing purposes. - [FakeMessagesListChatModel](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeMessagesListChatModel.md) (class): Fake chat model for testing purposes. - [FakeStreamingListLLM](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeStreamingListLLM.md) (class): Fake streaming list LLM for testing purposes - [FewShotChatMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate.md) (class): Chat prompt template that supports few-shot examples - [FewShotPromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate.md) (class): Prompt template that contains few shot examples. - [FewShotPromptWithTemplates](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates.md) (class): Prompt template that contains few shot examples. - [FileCallbackHandler](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler.md) (class): Callback handler that writes to a file - [FileContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/FileContentBlock.md) (class): File data that doesn't fit into other multimodal block types - [FilterDirective](https://reference.langchain.com/python/langchain-core/structured_query/FilterDirective.md) (class): Filtering expression. - [FunctionCallbackHandler](https://reference.langchain.com/python/langchain-core/tracers/stdout/FunctionCallbackHandler.md) (class): Tracer that calls a function with a single str parameter. - [FunctionDescription](https://reference.langchain.com/python/langchain-core/utils/function_calling/FunctionDescription.md) (class): Representation of a callable function to send to an LLM. - [FunctionMessage](https://reference.langchain.com/python/langchain-core/messages/function/FunctionMessage.md) (class): Message for passing the result of executing a tool back to a model - [FunctionMessageChunk](https://reference.langchain.com/python/langchain-core/messages/function/FunctionMessageChunk.md) (class): Function Message chunk. - [FunctionNonLocals](https://reference.langchain.com/python/langchain-core/runnables/utils/FunctionNonLocals.md) (class): Get the nonlocal variables accessed of a function. - [Generation](https://reference.langchain.com/python/langchain-core/outputs/generation/Generation.md) (class): A single text generation output - [GenerationChunk](https://reference.langchain.com/python/langchain-core/outputs/generation/GenerationChunk.md) (class): `GenerationChunk`, which can be concatenated with other `Generation` chunks. - [GenericFakeChatModel](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/GenericFakeChatModel.md) (class): Generic fake chat model that can be used to test the chat model interface - [GetLambdaSource](https://reference.langchain.com/python/langchain-core/runnables/utils/GetLambdaSource.md) (class): Get the source code of a lambda function. - [Graph](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph.md) (class): Graph of nodes and edges. - [HumanMessage](https://reference.langchain.com/python/langchain-core/messages/human/HumanMessage.md) (class): Message from the user - [HumanMessageChunk](https://reference.langchain.com/python/langchain-core/messages/human/HumanMessageChunk.md) (class): Human Message chunk. - [HumanMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/HumanMessagePromptTemplate.md) (class): Human message prompt template - [ImageContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/ImageContentBlock.md) (class): Image data - [ImagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate.md) (class): Image prompt template for a multimodal model. - [ImagePromptValue](https://reference.langchain.com/python/langchain-core/prompt_values/ImagePromptValue.md) (class): Image prompt value. - [ImageURL](https://reference.langchain.com/python/langchain-core/prompt_values/ImageURL.md) (class): Image URL for multimodal model inputs (OpenAI format) - [IndexingException](https://reference.langchain.com/python/langchain-core/indexing/api/IndexingException.md) (class): Raised when an indexing operation fails. - [IndexingResult](https://reference.langchain.com/python/langchain-core/indexing/api/IndexingResult.md) (class): Return a detailed a breakdown of the result of the indexing operation. - [InjectedToolArg](https://reference.langchain.com/python/langchain-core/tools/base/InjectedToolArg.md) (class): Annotation for tool arguments that are injected at runtime - [InjectedToolCallId](https://reference.langchain.com/python/langchain-core/tools/base/InjectedToolCallId.md) (class): Annotation for injecting the tool call ID - [InMemoryBaseStore](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore.md) (class): In-memory implementation of the `BaseStore` using a dictionary. - [InMemoryByteStore](https://reference.langchain.com/python/langchain-core/stores/InMemoryByteStore.md) (class): In-memory store for bytes. - [InMemoryCache](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache.md) (class): Cache that stores things in memory. - [InMemoryChatMessageHistory](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory.md) (class): In memory implementation of chat message history - [InMemoryDocumentIndex](https://reference.langchain.com/python/langchain-core/indexing/in_memory/InMemoryDocumentIndex.md) (class): In memory document index - [InMemoryRateLimiter](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter.md) (class): An in memory rate limiter based on a token bucket algorithm - [InMemoryRecordManager](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager.md) (class): An in-memory record manager for testing purposes. - [InMemoryStore](https://reference.langchain.com/python/langchain-core/stores/InMemoryStore.md) (class): In-memory store for any type of data. - [InMemoryVectorStore](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore.md) (class): In-memory vector store implementation - [InputTokenDetails](https://reference.langchain.com/python/langchain-core/messages/ai/InputTokenDetails.md) (class): Breakdown of input token counts - [InvalidKeyException](https://reference.langchain.com/python/langchain-core/stores/InvalidKeyException.md) (class): Raised when a key is invalid; e.g., uses incorrect characters. - [InvalidToolCall](https://reference.langchain.com/python/langchain-core/messages/content/InvalidToolCall.md) (class): Allowance for errors made by LLM - [IsFunctionArgDict](https://reference.langchain.com/python/langchain-core/runnables/utils/IsFunctionArgDict.md) (class): Check if the first argument of a function is a dict. - [IsLocalDict](https://reference.langchain.com/python/langchain-core/runnables/utils/IsLocalDict.md) (class): Check if a name is a local dict. - [JsonKeyOutputFunctionsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonKeyOutputFunctionsParser.md) (class): Parse an output as the element of the JSON object. - [JsonOutputFunctionsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonOutputFunctionsParser.md) (class): Parse an output as the JSON object. - [JsonOutputKeyToolsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputKeyToolsParser.md) (class): Parse tools from OpenAI response. - [JsonOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/json/JsonOutputParser.md) (class): Parse the output of an LLM call to a JSON object - [JsonOutputToolsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputToolsParser.md) (class): Parse tools from OpenAI response. - [LabelsDict](https://reference.langchain.com/python/langchain-core/runnables/graph/LabelsDict.md) (class): Dictionary of labels for nodes and edges in a graph. - [LangChainBetaWarning](https://reference.langchain.com/python/langchain-core/_api/beta_decorator/LangChainBetaWarning.md) (class): A class for issuing beta warnings for LangChain users. - [LangChainDeprecationWarning](https://reference.langchain.com/python/langchain-core/_api/deprecation/LangChainDeprecationWarning.md) (class): A class for issuing deprecation warnings for LangChain users. - [LangChainException](https://reference.langchain.com/python/langchain-core/exceptions/LangChainException.md) (class): General LangChain exception. - [LangChainPendingDeprecationWarning](https://reference.langchain.com/python/langchain-core/_api/deprecation/LangChainPendingDeprecationWarning.md) (class): A class for issuing deprecation warnings for LangChain users. - [LangChainTracer](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer.md) (class): Implementation of the `SharedTracer` that `POSTS` to the LangChain endpoint. - [LangSmithLoader](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader.md) (class): Load LangSmith Dataset examples as `Document` objects - [LangSmithParams](https://reference.langchain.com/python/langchain-core/language_models/base/LangSmithParams.md) (class): LangSmith parameters for tracing. - [LangSmithRetrieverParams](https://reference.langchain.com/python/langchain-core/retrievers/LangSmithRetrieverParams.md) (class): LangSmith parameters for tracing. - [LengthBasedExampleSelector](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector.md) (class): Select examples based on length. - [ListOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/list/ListOutputParser.md) (class): Parse the output of a model to a list. - [LLM](https://reference.langchain.com/python/langchain-core/language_models/llms/LLM.md) (class): Simple interface for implementing a custom LLM - [LLMManagerMixin](https://reference.langchain.com/python/langchain-core/callbacks/base/LLMManagerMixin.md) (class): Mixin for LLM callbacks. - [LLMResult](https://reference.langchain.com/python/langchain-core/outputs/llm_result/LLMResult.md) (class): A container for results of an LLM call - [LogEntry](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogEntry.md) (class): A single entry in the run log. - [LogStreamCallbackHandler](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler.md) (class): Tracer that streams run logs to a stream. - [MarkdownListOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/list/MarkdownListOutputParser.md) (class): Parse a Markdown list. - [MaxMarginalRelevanceExampleSelector](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/MaxMarginalRelevanceExampleSelector.md) (class): Select examples based on Max Marginal Relevance - [MermaidDrawMethod](https://reference.langchain.com/python/langchain-core/runnables/graph/MermaidDrawMethod.md) (class): Enum for different draw methods supported by Mermaid. - [MessagesPlaceholder](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder.md) (class): Prompt template that assumes variable is already list of messages - [ModelProfile](https://reference.langchain.com/python/langchain-core/language_models/model_profile/ModelProfile.md) (class): Model profile - [Node](https://reference.langchain.com/python/langchain-core/runnables/graph/Node.md) (class): Node in a graph. - [NodeStyles](https://reference.langchain.com/python/langchain-core/runnables/graph/NodeStyles.md) (class): Schema for Hexadecimal color codes for different node types. - [NoLock](https://reference.langchain.com/python/langchain-core/utils/aiter/NoLock.md) (class): Dummy lock that provides the proper interface but no protection. - [NoLock](https://reference.langchain.com/python/langchain-core/utils/iter/NoLock.md) (class): Dummy lock that provides the proper interface but no protection. - [NonLocals](https://reference.langchain.com/python/langchain-core/runnables/utils/NonLocals.md) (class): Get nonlocal variables accessed. - [NonStandardAnnotation](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardAnnotation.md) (class): Provider-specific annotation format. - [NonStandardContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/NonStandardContentBlock.md) (class): Provider-specific content data - [NumberedListOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/list/NumberedListOutputParser.md) (class): Parse a numbered list. - [Operation](https://reference.langchain.com/python/langchain-core/structured_query/Operation.md) (class): Logical operation over other directives. - [Operator](https://reference.langchain.com/python/langchain-core/structured_query/Operator.md) (class): Enumerator of the operations. - [OutputFunctionsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/OutputFunctionsParser.md) (class): Parse an output that is one of sets of values. - [OutputParserException](https://reference.langchain.com/python/langchain-core/exceptions/OutputParserException.md) (class): Exception that output parsers should raise to signify a parsing error - [OutputTokenDetails](https://reference.langchain.com/python/langchain-core/messages/ai/OutputTokenDetails.md) (class): Breakdown of output token counts - [ParentRunManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/ParentRunManager.md) (class): Synchronous parent run manager. - [ParrotFakeChatModel](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/ParrotFakeChatModel.md) (class): Generic fake chat model that can be used to test the chat model interface - [ParsedDataUri](https://reference.langchain.com/python/langchain-core/language_models/_utils/ParsedDataUri.md) (class) - [PlainTextContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/PlainTextContentBlock.md) (class): Plaintext data (e.g., from a `.txt` or `.md` document) - [PngDrawer](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer.md) (class): Helper class to draw a state graph into a PNG file - [PromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate.md) (class): Prompt template for a language model - [PromptValue](https://reference.langchain.com/python/langchain-core/prompt_values/PromptValue.md) (class): Base abstract class for inputs to any language model - [PydanticAttrOutputFunctionsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticAttrOutputFunctionsParser.md) (class): Parse an output as an attribute of a Pydantic object. - [PydanticOutputFunctionsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticOutputFunctionsParser.md) (class): Parse an output as a Pydantic object - [PydanticOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic/PydanticOutputParser.md) (class): Parse an output using a Pydantic model. - [PydanticToolsParser](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/PydanticToolsParser.md) (class): Parse tools from OpenAI response. - [ReasoningContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/ReasoningContentBlock.md) (class): Reasoning output from a LLM - [RecordManager](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager.md) (class): Abstract base class representing the interface for a record manager - [RemoveMessage](https://reference.langchain.com/python/langchain-core/messages/modifier/RemoveMessage.md) (class): Message responsible for deleting other messages. - [RetrieverInput](https://reference.langchain.com/python/langchain-core/tools/retriever/RetrieverInput.md) (class): Input to the retriever. - [RetrieverManagerMixin](https://reference.langchain.com/python/langchain-core/callbacks/base/RetrieverManagerMixin.md) (class): Mixin for `Retriever` callbacks. - [Reviver](https://reference.langchain.com/python/langchain-core/load/load/Reviver.md) (class): Reviver for JSON objects - [RootListenersTracer](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/RootListenersTracer.md) (class): Tracer that calls listeners on run start, end, and error. - [RouterInput](https://reference.langchain.com/python/langchain-core/runnables/router/RouterInput.md) (class): Router input. - [RouterRunnable](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable.md) (class): `Runnable` that routes to a set of `Runnable` based on `Input['key']` - [RunCollectorCallbackHandler](https://reference.langchain.com/python/langchain-core/tracers/run_collector/RunCollectorCallbackHandler.md) (class): Tracer that collects all nested runs in a list - [RunInfo](https://reference.langchain.com/python/langchain-core/outputs/run_info/RunInfo.md) (class): Class that contains metadata for a single execution of a chain or model - [RunInfo](https://reference.langchain.com/python/langchain-core/tracers/event_stream/RunInfo.md) (class): Information about a run - [RunLog](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunLog.md) (class): Run log. - [RunLogPatch](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunLogPatch.md) (class): Patch to the run log. - [RunManager](https://reference.langchain.com/python/langchain-core/callbacks/manager/RunManager.md) (class): Synchronous run manager. - [RunManagerMixin](https://reference.langchain.com/python/langchain-core/callbacks/base/RunManagerMixin.md) (class): Mixin for run manager. - [Runnable](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable.md) (class): A unit of work that can be invoked, batched, streamed, transformed and composed - [RunnableAssign](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign.md) (class): Runnable that assigns key-value pairs to `dict[str, Any]` inputs - [RunnableBinding](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBinding.md) (class): Wrap a `Runnable` with additional functionality - [RunnableBindingBase](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase.md) (class): `Runnable` that delegates calls to another `Runnable` with a set of `**kwargs` - [RunnableBranch](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch.md) (class): `Runnable` that selects which branch to run based on a condition - [RunnableConfig](https://reference.langchain.com/python/langchain-core/runnables/config/RunnableConfig.md) (class): Configuration for a `Runnable` - [RunnableConfigurableAlternatives](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives.md) (class): `Runnable` that can be dynamically configured - [RunnableConfigurableFields](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableFields.md) (class): `Runnable` that can be dynamically configured - [RunnableEach](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEach.md) (class): RunnableEach class - [RunnableEachBase](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase.md) (class): RunnableEachBase class - [RunnableGenerator](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator.md) (class): `Runnable` that runs a generator function - [RunnableLambda](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda.md) (class): `RunnableLambda` converts a python callable into a `Runnable` - [RunnableParallel](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel.md) (class): Runnable that runs a mapping of `Runnable`s in parallel - [RunnablePassthrough](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough.md) (class): Runnable to passthrough inputs unchanged or with additional keys - [RunnablePick](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick.md) (class): `Runnable` that picks keys from `dict[str, Any]` inputs - [RunnableRetry](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry.md) (class): Retry a Runnable if it fails - [RunnableSequence](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence.md) (class): Sequence of `Runnable` objects, where the output of one is the input of the next - [RunnableSerializable](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSerializable.md) (class): Runnable that can be serialized to JSON. - [RunnableWithFallbacks](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks.md) (class): `Runnable` that can fallback to other `Runnable` objects if it fails - [RunnableWithMessageHistory](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory.md) (class): `Runnable` that manages chat message history for another `Runnable` - [RunState](https://reference.langchain.com/python/langchain-core/tracers/log_stream/RunState.md) (class): State of the run. - [SchemaAnnotationError](https://reference.langchain.com/python/langchain-core/tools/base/SchemaAnnotationError.md) (class): Raised when `args_schema` is missing or has an incorrect type annotation. - [SemanticSimilarityExampleSelector](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/SemanticSimilarityExampleSelector.md) (class): Select examples based on semantic similarity. - [Serializable](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable.md) (class): Serializable base class - [SerializedConstructor](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedConstructor.md) (class): Serialized constructor. - [SerializedNotImplemented](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedNotImplemented.md) (class): Serialized not implemented. - [SerializedSecret](https://reference.langchain.com/python/langchain-core/load/serializable/SerializedSecret.md) (class): Serialized secret. - [ServerToolCall](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCall.md) (class): Tool call that is executed server-side - [ServerToolCallChunk](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolCallChunk.md) (class): A chunk of a server-side tool call (yielded when streaming). - [ServerToolResult](https://reference.langchain.com/python/langchain-core/messages/content/ServerToolResult.md) (class): Result of a server-side tool call. - [SimpleChatModel](https://reference.langchain.com/python/langchain-core/language_models/chat_models/SimpleChatModel.md) (class): Simplified implementation for a chat model to inherit from - [StandardStreamEvent](https://reference.langchain.com/python/langchain-core/runnables/schema/StandardStreamEvent.md) (class): A standard stream event that follows LangChain convention for event data. - [StdOutCallbackHandler](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler.md) (class): Callback handler that prints to std out. - [StreamingStdOutCallbackHandler](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler.md) (class): Callback handler for streaming - [StrEnum](https://reference.langchain.com/python/langchain-core/runnables/configurable/StrEnum.md) (class): String enum. - [StrictFormatter](https://reference.langchain.com/python/langchain-core/utils/formatting/StrictFormatter.md) (class): A string formatter that enforces keyword-only argument substitution - [Stringifiable](https://reference.langchain.com/python/langchain-core/runnables/graph/Stringifiable.md) (class): Protocol for objects that can be converted to a string. - [StringPromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate.md) (class): String prompt that exposes the format method, returning a prompt. - [StringPromptValue](https://reference.langchain.com/python/langchain-core/prompt_values/StringPromptValue.md) (class): String prompt value. - [StrOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/string/StrOutputParser.md) (class): Extract text content from model outputs as a string - [StructuredPrompt](https://reference.langchain.com/python/langchain-core/prompts/structured/StructuredPrompt.md) (class): Structured prompt template for a language model. - [StructuredQuery](https://reference.langchain.com/python/langchain-core/structured_query/StructuredQuery.md) (class): Structured query. - [StructuredTool](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool.md) (class): Tool that can operate on any number of inputs. - [SupportsAdd](https://reference.langchain.com/python/langchain-core/runnables/utils/SupportsAdd.md) (class): Protocol for objects that support addition. - [SystemMessage](https://reference.langchain.com/python/langchain-core/messages/system/SystemMessage.md) (class): Message for priming AI behavior - [SystemMessageChunk](https://reference.langchain.com/python/langchain-core/messages/system/SystemMessageChunk.md) (class): System Message chunk. - [SystemMessagePromptTemplate](https://reference.langchain.com/python/langchain-core/prompts/chat/SystemMessagePromptTemplate.md) (class): System message prompt template - [Tee](https://reference.langchain.com/python/langchain-core/utils/aiter/Tee.md) (class): Create `n` separate asynchronous iterators over `iterable` - [Tee](https://reference.langchain.com/python/langchain-core/utils/iter/Tee.md) (class): Create `n` separate asynchronous iterators over `iterable` - [TextAccessor](https://reference.langchain.com/python/langchain-core/messages/base/TextAccessor.md) (class): String-like object that supports both property and method access patterns - [TextContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/TextContentBlock.md) (class): Text output from a LLM - [Tool](https://reference.langchain.com/python/langchain-core/tools/simple/Tool.md) (class): Tool that takes in function or coroutine directly. - [ToolCall](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCall.md) (class): Represents an AI's request to call a tool. - [ToolCall](https://reference.langchain.com/python/langchain-core/messages/content/ToolCall.md) (class): Represents an AI's request to call a tool. - [ToolCallChunk](https://reference.langchain.com/python/langchain-core/messages/tool/ToolCallChunk.md) (class): A chunk of a tool call (yielded when streaming) - [ToolCallChunk](https://reference.langchain.com/python/langchain-core/messages/content/ToolCallChunk.md) (class): A chunk of a tool call (yielded when streaming) - [ToolDescription](https://reference.langchain.com/python/langchain-core/utils/function_calling/ToolDescription.md) (class): Representation of a callable function to the OpenAI API. - [ToolException](https://reference.langchain.com/python/langchain-core/tools/base/ToolException.md) (class): Exception thrown when a tool execution error occurs - [ToolManagerMixin](https://reference.langchain.com/python/langchain-core/callbacks/base/ToolManagerMixin.md) (class): Mixin for tool callbacks. - [ToolMessage](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage.md) (class): Message for passing the result of executing a tool back to a model - [ToolMessageChunk](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessageChunk.md) (class): Tool Message chunk. - [ToolOutputMixin](https://reference.langchain.com/python/langchain-core/messages/tool/ToolOutputMixin.md) (class): Mixin for objects that tools can return directly - [TracerException](https://reference.langchain.com/python/langchain-core/exceptions/TracerException.md) (class): Base class for exceptions in tracers module. - [UpsertResponse](https://reference.langchain.com/python/langchain-core/indexing/base/UpsertResponse.md) (class): A generic response for upsert operations - [UsageMetadata](https://reference.langchain.com/python/langchain-core/messages/ai/UsageMetadata.md) (class): Usage metadata for a message, such as token counts - [UsageMetadataCallbackHandler](https://reference.langchain.com/python/langchain-core/callbacks/usage/UsageMetadataCallbackHandler.md) (class): Callback Handler that tracks `AIMessage.usage_metadata`. - [VectorStore](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore.md) (class): Interface for vector store. - [VectorStoreRetriever](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever.md) (class): Base Retriever class for VectorStore. - [VertexViewer](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/VertexViewer.md) (class): VertexViewer class - [VideoContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/VideoContentBlock.md) (class): Video data - [Visitor](https://reference.langchain.com/python/langchain-core/structured_query/Visitor.md) (class): Defines interface for IR translation using a visitor pattern. - [XMLOutputParser](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XMLOutputParser.md) (class): Parse an output using xml format #### Functions - [aadd](https://reference.langchain.com/python/langchain-core/runnables/utils/aadd.md) (function): Asynchronously add a sequence of addable objects together. - [abatch_iterate](https://reference.langchain.com/python/langchain-core/utils/aiter/abatch_iterate.md) (function): Utility batching function for async iterables. - [acall_func_with_variable_args](https://reference.langchain.com/python/langchain-core/runnables/config/acall_func_with_variable_args.md) (function): Async call function that may optionally accept a run_manager and/or config. - [accepts_config](https://reference.langchain.com/python/langchain-core/runnables/utils/accepts_config.md) (function): Check if a callable accepts a config argument. - [accepts_context](https://reference.langchain.com/python/langchain-core/runnables/utils/accepts_context.md) (function): Check if a callable accepts a context argument. - [accepts_run_manager](https://reference.langchain.com/python/langchain-core/runnables/utils/accepts_run_manager.md) (function): Check if a callable accepts a run_manager argument. - [add](https://reference.langchain.com/python/langchain-core/runnables/utils/add.md) (function): Add a sequence of addable objects together. - [add_ai_message_chunks](https://reference.langchain.com/python/langchain-core/messages/ai/add_ai_message_chunks.md) (function): Add multiple `AIMessageChunk`s together. - [add_usage](https://reference.langchain.com/python/langchain-core/messages/ai/add_usage.md) (function): Recursively add two UsageMetadata objects. - [adispatch_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/manager/adispatch_custom_event.md) (function): Dispatch an adhoc event to the handlers. - [aformat_document](https://reference.langchain.com/python/langchain-core/prompts/base/aformat_document.md) (function): Async format a document into a string based on a prompt template - [agenerate_from_stream](https://reference.langchain.com/python/langchain-core/language_models/chat_models/agenerate_from_stream.md) (function): Async generate from a stream. - [aget_prompts](https://reference.langchain.com/python/langchain-core/language_models/llms/aget_prompts.md) (function): Get prompts that are already cached - [ahandle_event](https://reference.langchain.com/python/langchain-core/callbacks/manager/ahandle_event.md) (function): Async generic event handler for `AsyncCallbackManager`. - [aidentity](https://reference.langchain.com/python/langchain-core/runnables/passthrough/aidentity.md) (function): Async identity function. - [aindex](https://reference.langchain.com/python/langchain-core/indexing/api/aindex.md) (function): Async index data from the loader into the vector store - [as_import_path](https://reference.langchain.com/python/langchain-core/_api/path/as_import_path.md) (function): Path of the file as a LangChain import exclude langchain top namespace. - [asyncio_accepts_context](https://reference.langchain.com/python/langchain-core/runnables/utils/asyncio_accepts_context.md) (function): Check if asyncio.create_task accepts a `context` arg. - [atrace_as_chain_group](https://reference.langchain.com/python/langchain-core/callbacks/manager/atrace_as_chain_group.md) (function): Get an async callback manager for a chain group in a context manager - [aupdate_cache](https://reference.langchain.com/python/langchain-core/language_models/llms/aupdate_cache.md) (function): Update the cache and get the LLM output - [batch_iterate](https://reference.langchain.com/python/langchain-core/utils/iter/batch_iterate.md) (function): Utility batching function. - [beta](https://reference.langchain.com/python/langchain-core/_api/beta_decorator/beta.md) (function): Decorator to mark a function, a class, or a property as beta - [build_extra_kwargs](https://reference.langchain.com/python/langchain-core/utils/utils/build_extra_kwargs.md) (function): Build extra kwargs from values and extra_kwargs - [call_func_with_variable_args](https://reference.langchain.com/python/langchain-core/runnables/config/call_func_with_variable_args.md) (function): Call function that may optionally accept a run_manager and/or config. - [chain](https://reference.langchain.com/python/langchain-core/runnables/base/chain.md) (function): Decorate a function to make it a `Runnable` - [check_package_version](https://reference.langchain.com/python/langchain-core/utils/utils/check_package_version.md) (function): Check the version of a package. - [check_valid_template](https://reference.langchain.com/python/langchain-core/prompts/string/check_valid_template.md) (function): Check that template string is valid. - [coerce_to_runnable](https://reference.langchain.com/python/langchain-core/runnables/base/coerce_to_runnable.md) (function): Coerce a `Runnable`-like object into a `Runnable`. - [collect_runs](https://reference.langchain.com/python/langchain-core/tracers/context/collect_runs.md) (function): Collect all run traces in context. - [comma_list](https://reference.langchain.com/python/langchain-core/utils/strings/comma_list.md) (function): Convert an iterable to a comma-separated string. - [convert_runnable_to_tool](https://reference.langchain.com/python/langchain-core/tools/convert/convert_runnable_to_tool.md) (function): Convert a `Runnable` into a `BaseTool`. - [convert_to_json_schema](https://reference.langchain.com/python/langchain-core/utils/function_calling/convert_to_json_schema.md) (function): Convert a schema representation to a JSON schema. - [convert_to_messages](https://reference.langchain.com/python/langchain-core/messages/utils/convert_to_messages.md) (function): Convert a sequence of messages to a list of messages. - [convert_to_openai_data_block](https://reference.langchain.com/python/langchain-core/messages/block_translators/openai/convert_to_openai_data_block.md) (function): Format standard data content block to format expected by OpenAI - [convert_to_openai_function](https://reference.langchain.com/python/langchain-core/utils/function_calling/convert_to_openai_function.md) (function): Convert a raw function/class to an OpenAI function. - [convert_to_openai_image_block](https://reference.langchain.com/python/langchain-core/messages/block_translators/openai/convert_to_openai_image_block.md) (function): Convert `ImageContentBlock` to format expected by OpenAI Chat Completions. - [convert_to_openai_messages](https://reference.langchain.com/python/langchain-core/messages/utils/convert_to_openai_messages.md) (function): Convert LangChain messages into OpenAI message dicts. - [convert_to_openai_tool](https://reference.langchain.com/python/langchain-core/utils/function_calling/convert_to_openai_tool.md) (function): Convert a tool-like object to an OpenAI tool schema - [convert_to_secret_str](https://reference.langchain.com/python/langchain-core/utils/utils/convert_to_secret_str.md) (function): Convert a string to a `SecretStr` if needed. - [coro_with_context](https://reference.langchain.com/python/langchain-core/runnables/utils/coro_with_context.md) (function): Await a coroutine with a context. - [count_tokens_approximately](https://reference.langchain.com/python/langchain-core/messages/utils/count_tokens_approximately.md) (function): Approximate the total number of tokens in messages - [create_audio_block](https://reference.langchain.com/python/langchain-core/messages/content/create_audio_block.md) (function): Create an `AudioContentBlock`. - [create_base_retry_decorator](https://reference.langchain.com/python/langchain-core/language_models/llms/create_base_retry_decorator.md) (function): Create a retry decorator for a given LLM and provided a list of error types. - [create_citation](https://reference.langchain.com/python/langchain-core/messages/content/create_citation.md) (function): Create a `Citation`. - [create_file_block](https://reference.langchain.com/python/langchain-core/messages/content/create_file_block.md) (function): Create a `FileContentBlock`. - [create_image_block](https://reference.langchain.com/python/langchain-core/messages/content/create_image_block.md) (function): Create an `ImageContentBlock`. - [create_message](https://reference.langchain.com/python/langchain-core/exceptions/create_message.md) (function): Create a message with a link to the LangChain troubleshooting guide. - [create_model](https://reference.langchain.com/python/langchain-core/utils/pydantic/create_model.md) (function): Create a Pydantic model with the given field definitions - [create_model_v2](https://reference.langchain.com/python/langchain-core/utils/pydantic/create_model_v2.md) (function): Create a Pydantic model with the given field definitions - [create_non_standard_block](https://reference.langchain.com/python/langchain-core/messages/content/create_non_standard_block.md) (function): Create a `NonStandardContentBlock`. - [create_plaintext_block](https://reference.langchain.com/python/langchain-core/messages/content/create_plaintext_block.md) (function): Create a `PlainTextContentBlock`. - [create_reasoning_block](https://reference.langchain.com/python/langchain-core/messages/content/create_reasoning_block.md) (function): Create a `ReasoningContentBlock`. - [create_retriever_tool](https://reference.langchain.com/python/langchain-core/tools/retriever/create_retriever_tool.md) (function): Create a tool to do retrieval of documents. - [create_schema_from_function](https://reference.langchain.com/python/langchain-core/tools/base/create_schema_from_function.md) (function): Create a Pydantic schema from a function's signature. - [create_text_block](https://reference.langchain.com/python/langchain-core/messages/content/create_text_block.md) (function): Create a `TextContentBlock`. - [create_tool_call](https://reference.langchain.com/python/langchain-core/messages/content/create_tool_call.md) (function): Create a `ToolCall`. - [create_video_block](https://reference.langchain.com/python/langchain-core/messages/content/create_video_block.md) (function): Create a `VideoContentBlock`. - [default](https://reference.langchain.com/python/langchain-core/load/dump/default.md) (function): Return a default value for an object. - [default_init_validator](https://reference.langchain.com/python/langchain-core/load/load/default_init_validator.md) (function): Default init validator that blocks jinja2 templates - [default_tool_chunk_parser](https://reference.langchain.com/python/langchain-core/messages/tool/default_tool_chunk_parser.md) (function): Best-effort parsing of tool chunks. - [default_tool_parser](https://reference.langchain.com/python/langchain-core/messages/tool/default_tool_parser.md) (function): Best-effort parsing of tools. - [deprecated](https://reference.langchain.com/python/langchain-core/_api/deprecation/deprecated.md) (function): Decorator to mark a function, a class, or a property as deprecated - [dereference_refs](https://reference.langchain.com/python/langchain-core/utils/json_schema/dereference_refs.md) (function): Resolve and inline JSON Schema `$ref` references in a schema object - [dispatch_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/manager/dispatch_custom_event.md) (function): Dispatch an adhoc event. - [draw_ascii](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/draw_ascii.md) (function): Build a DAG and draw it in ASCII. - [draw_mermaid](https://reference.langchain.com/python/langchain-core/runnables/graph_mermaid/draw_mermaid.md) (function): Draws a Mermaid graph using the provided graph data. - [draw_mermaid_png](https://reference.langchain.com/python/langchain-core/runnables/graph_mermaid/draw_mermaid_png.md) (function): Draws a Mermaid graph as PNG using provided syntax. - [droplastn](https://reference.langchain.com/python/langchain-core/output_parsers/list/droplastn.md) (function): Drop the last `n` elements of an iterator. - [dumpd](https://reference.langchain.com/python/langchain-core/load/dump/dumpd.md) (function): Return a dict representation of an object. - [dumps](https://reference.langchain.com/python/langchain-core/load/dump/dumps.md) (function): Return a JSON string representation of an object. - [elapsed](https://reference.langchain.com/python/langchain-core/tracers/stdout/elapsed.md) (function): Get the elapsed time of a run. - [ensure_config](https://reference.langchain.com/python/langchain-core/runnables/config/ensure_config.md) (function): Ensure that a config is a dict with all keys present. - [ensure_id](https://reference.langchain.com/python/langchain-core/utils/utils/ensure_id.md) (function): Ensure the ID is a valid string, generating a new UUID if not provided - [env_var_is_set](https://reference.langchain.com/python/langchain-core/utils/env/env_var_is_set.md) (function): Check if an environment variable is set. - [extract_sub_links](https://reference.langchain.com/python/langchain-core/utils/html/extract_sub_links.md) (function): Extract all links from a raw HTML string and convert into absolute paths. - [filter_messages](https://reference.langchain.com/python/langchain-core/messages/utils/filter_messages.md) (function): Filter messages based on `name`, `type` or `id`. - [find_all_links](https://reference.langchain.com/python/langchain-core/utils/html/find_all_links.md) (function): Extract all links from a raw HTML string. - [format_document](https://reference.langchain.com/python/langchain-core/prompts/base/format_document.md) (function): Format a document into a string based on a prompt template - [from_env](https://reference.langchain.com/python/langchain-core/utils/utils/from_env.md) (function): Create a factory method that gets a value from an environment variable. - [gated_coro](https://reference.langchain.com/python/langchain-core/runnables/utils/gated_coro.md) (function): Run a coroutine with a semaphore. - [gather_with_concurrency](https://reference.langchain.com/python/langchain-core/runnables/utils/gather_with_concurrency.md) (function): Gather coroutines with a limit on the number of concurrent coroutines. - [generate_from_stream](https://reference.langchain.com/python/langchain-core/language_models/chat_models/generate_from_stream.md) (function): Generate from a stream. - [get_all_basemodel_annotations](https://reference.langchain.com/python/langchain-core/tools/base/get_all_basemodel_annotations.md) (function): Get all annotations from a Pydantic `BaseModel` and its parents. - [get_async_callback_manager_for_config](https://reference.langchain.com/python/langchain-core/runnables/config/get_async_callback_manager_for_config.md) (function): Get an async callback manager for a config. - [get_bolded_text](https://reference.langchain.com/python/langchain-core/utils/input/get_bolded_text.md) (function): Get bolded text. - [get_buffer_string](https://reference.langchain.com/python/langchain-core/messages/utils/get_buffer_string.md) (function): Convert a sequence of messages to strings and concatenate them into one string. - [get_callback_manager_for_config](https://reference.langchain.com/python/langchain-core/runnables/config/get_callback_manager_for_config.md) (function): Get a callback manager for a config. - [get_client](https://reference.langchain.com/python/langchain-core/tracers/langchain/get_client.md) (function): Get the client. - [get_color_mapping](https://reference.langchain.com/python/langchain-core/utils/input/get_color_mapping.md) (function): Get mapping for items to a support color. - [get_colored_text](https://reference.langchain.com/python/langchain-core/utils/input/get_colored_text.md) (function): Get colored text. - [get_config_list](https://reference.langchain.com/python/langchain-core/runnables/config/get_config_list.md) (function): Get a list of configs from a single config or a list of configs - [get_debug](https://reference.langchain.com/python/langchain-core/globals/get_debug.md) (function): Get the value of the `debug` global setting. - [get_executor_for_config](https://reference.langchain.com/python/langchain-core/runnables/config/get_executor_for_config.md) (function): Get an executor for a config. - [get_fields](https://reference.langchain.com/python/langchain-core/utils/pydantic/get_fields.md) (function): Return the field names of a Pydantic model. - [get_from_dict_or_env](https://reference.langchain.com/python/langchain-core/utils/env/get_from_dict_or_env.md) (function): Get a value from a dictionary or an environment variable. - [get_from_env](https://reference.langchain.com/python/langchain-core/utils/env/get_from_env.md) (function): Get a value from a dictionary or an environment variable. - [get_function_first_arg_dict_keys](https://reference.langchain.com/python/langchain-core/runnables/utils/get_function_first_arg_dict_keys.md) (function): Get the keys of the first argument of a function if it is a dict. - [get_function_nonlocals](https://reference.langchain.com/python/langchain-core/runnables/utils/get_function_nonlocals.md) (function): Get the nonlocal variables accessed by a function. - [get_lambda_source](https://reference.langchain.com/python/langchain-core/runnables/utils/get_lambda_source.md) (function): Get the source code of a lambda function. - [get_llm_cache](https://reference.langchain.com/python/langchain-core/globals/get_llm_cache.md) (function): Get the value of the `llm_cache` global setting. - [get_msg_title_repr](https://reference.langchain.com/python/langchain-core/messages/base/get_msg_title_repr.md) (function): Get a title representation for a message. - [get_prompts](https://reference.langchain.com/python/langchain-core/language_models/llms/get_prompts.md) (function): Get prompts that are already cached. - [get_pydantic_field_names](https://reference.langchain.com/python/langchain-core/utils/utils/get_pydantic_field_names.md) (function): Get field names, including aliases, for a pydantic class. - [get_pydantic_major_version](https://reference.langchain.com/python/langchain-core/utils/pydantic/get_pydantic_major_version.md) (function): DEPRECATED - Get the major version of Pydantic - [get_relative_path](https://reference.langchain.com/python/langchain-core/_api/path/get_relative_path.md) (function): Get the path of the file as a relative path to the package directory. - [get_runtime_environment](https://reference.langchain.com/python/langchain-core/env/get_runtime_environment.md) (function): Get information about the LangChain runtime environment. - [get_template_variables](https://reference.langchain.com/python/langchain-core/prompts/string/get_template_variables.md) (function): Get the variables from the template. - [get_tokenizer](https://reference.langchain.com/python/langchain-core/language_models/base/get_tokenizer.md) (function): Get a GPT-2 tokenizer instance - [get_translator](https://reference.langchain.com/python/langchain-core/messages/block_translators/get_translator.md) (function): Get the translator functions for a provider. - [get_unique_config_specs](https://reference.langchain.com/python/langchain-core/runnables/utils/get_unique_config_specs.md) (function): Get the unique config specs from a sequence of config specs. - [get_usage_metadata_callback](https://reference.langchain.com/python/langchain-core/callbacks/usage/get_usage_metadata_callback.md) (function): Get usage metadata callback - [get_verbose](https://reference.langchain.com/python/langchain-core/globals/get_verbose.md) (function): Get the value of the `verbose` global setting. - [grab_literal](https://reference.langchain.com/python/langchain-core/utils/mustache/grab_literal.md) (function): Parse a literal from the template. - [guard_import](https://reference.langchain.com/python/langchain-core/utils/utils/guard_import.md) (function): Dynamically import a module - [handle_event](https://reference.langchain.com/python/langchain-core/callbacks/manager/handle_event.md) (function): Generic event handler for `CallbackManager`. - [identity](https://reference.langchain.com/python/langchain-core/runnables/passthrough/identity.md) (function): Identity function. - [import_attr](https://reference.langchain.com/python/langchain-core/_import_utils/import_attr.md) (function): Import an attribute from a module located in a package - [indent_lines_after_first](https://reference.langchain.com/python/langchain-core/runnables/utils/indent_lines_after_first.md) (function): Indent all lines of text after the first line. - [index](https://reference.langchain.com/python/langchain-core/indexing/api/index.md) (function): Index data from the loader into the vector store - [invalid_tool_call](https://reference.langchain.com/python/langchain-core/messages/tool/invalid_tool_call.md) (function): Create an invalid tool call. - [is_async_callable](https://reference.langchain.com/python/langchain-core/runnables/utils/is_async_callable.md) (function): Check if a function is async. - [is_async_generator](https://reference.langchain.com/python/langchain-core/runnables/utils/is_async_generator.md) (function): Check if a function is an async generator. - [is_basemodel_instance](https://reference.langchain.com/python/langchain-core/utils/pydantic/is_basemodel_instance.md) (function): Check if the given class is an instance of Pydantic `BaseModel` - [is_basemodel_subclass](https://reference.langchain.com/python/langchain-core/utils/pydantic/is_basemodel_subclass.md) (function): Check if the given class is a subclass of Pydantic `BaseModel` - [is_caller_internal](https://reference.langchain.com/python/langchain-core/_api/internal/is_caller_internal.md) (function): Return whether the caller at `depth` of this function is internal. - [is_cloud_metadata](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/is_cloud_metadata.md) (function): Check if hostname or IP is a cloud metadata endpoint. - [is_data_content_block](https://reference.langchain.com/python/langchain-core/messages/content/is_data_content_block.md) (function): Check if the provided content block is a data content block - [is_interactive_env](https://reference.langchain.com/python/langchain-core/utils/interactive_env/is_interactive_env.md) (function): Determine if running within IPython or Jupyter. - [is_localhost](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/is_localhost.md) (function): Check if hostname or IP is localhost. - [is_openai_data_block](https://reference.langchain.com/python/langchain-core/language_models/_utils/is_openai_data_block.md) (function): Check whether a block contains multimodal data in OpenAI Chat Completions format - [is_private_ip](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/is_private_ip.md) (function): Check if an IP address is in a private range. - [is_pydantic_v1_subclass](https://reference.langchain.com/python/langchain-core/utils/pydantic/is_pydantic_v1_subclass.md) (function): Check if the given class is Pydantic v1-like. - [is_pydantic_v2_subclass](https://reference.langchain.com/python/langchain-core/utils/pydantic/is_pydantic_v2_subclass.md) (function): Check if the given class is Pydantic v2-like. - [is_safe_url](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/is_safe_url.md) (function): Check if a URL is safe (non-throwing version of validate_safe_url). - [is_subsequence](https://reference.langchain.com/python/langchain-core/prompts/string/is_subsequence.md) (function): Return `True` if child is subsequence of parent. - [is_uuid](https://reference.langchain.com/python/langchain-core/runnables/graph/is_uuid.md) (function): Check if a string is a valid UUID. - [jinja2_formatter](https://reference.langchain.com/python/langchain-core/prompts/string/jinja2_formatter.md) (function): Format a template using jinja2 - [l_sa_check](https://reference.langchain.com/python/langchain-core/utils/mustache/l_sa_check.md) (function): Do a preliminary check to see if a tag could be a standalone. - [load](https://reference.langchain.com/python/langchain-core/load/load/load.md) (function): Revive a LangChain class from a JSON object - [load_prompt](https://reference.langchain.com/python/langchain-core/prompts/loading/load_prompt.md) (function): Unified method for loading a prompt from LangChainHub or local filesystem. - [load_prompt_from_config](https://reference.langchain.com/python/langchain-core/prompts/loading/load_prompt_from_config.md) (function): Load prompt from config dict. - [loads](https://reference.langchain.com/python/langchain-core/load/load/loads.md) (function): Revive a LangChain class from a JSON string - [log_error_once](https://reference.langchain.com/python/langchain-core/tracers/langchain/log_error_once.md) (function): Log an error once. - [make_invalid_tool_call](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/make_invalid_tool_call.md) (function): Create an `InvalidToolCall` from a raw tool call. - [make_options_spec](https://reference.langchain.com/python/langchain-core/runnables/configurable/make_options_spec.md) (function): Make options spec - [maximal_marginal_relevance](https://reference.langchain.com/python/langchain-core/vectorstores/utils/maximal_marginal_relevance.md) (function): Calculate maximal marginal relevance. - [merge_chat_generation_chunks](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/merge_chat_generation_chunks.md) (function): Merge a list of `ChatGenerationChunk`s into a single `ChatGenerationChunk`. - [merge_configs](https://reference.langchain.com/python/langchain-core/runnables/config/merge_configs.md) (function): Merge multiple configs into one. - [merge_content](https://reference.langchain.com/python/langchain-core/messages/base/merge_content.md) (function): Merge multiple message contents. - [merge_dicts](https://reference.langchain.com/python/langchain-core/utils/_merge/merge_dicts.md) (function): Merge dictionaries - [merge_lists](https://reference.langchain.com/python/langchain-core/utils/_merge/merge_lists.md) (function): Add many lists, handling `None`. - [merge_message_runs](https://reference.langchain.com/python/langchain-core/messages/utils/merge_message_runs.md) (function): Merge consecutive Messages of the same type - [merge_obj](https://reference.langchain.com/python/langchain-core/utils/_merge/merge_obj.md) (function): Merge two objects - [message_chunk_to_message](https://reference.langchain.com/python/langchain-core/messages/utils/message_chunk_to_message.md) (function): Convert a message chunk to a `Message`. - [message_to_dict](https://reference.langchain.com/python/langchain-core/messages/base/message_to_dict.md) (function): Convert a Message to a dictionary. - [messages_from_dict](https://reference.langchain.com/python/langchain-core/messages/utils/messages_from_dict.md) (function): Convert a sequence of messages from dicts to `Message` objects. - [messages_to_dict](https://reference.langchain.com/python/langchain-core/messages/base/messages_to_dict.md) (function): Convert a sequence of Messages to a list of dictionaries. - [mock_now](https://reference.langchain.com/python/langchain-core/utils/utils/mock_now.md) (function): Context manager for mocking out datetime.now() in unit tests. - [mustache_formatter](https://reference.langchain.com/python/langchain-core/prompts/string/mustache_formatter.md) (function): Format a template using mustache. - [mustache_schema](https://reference.langchain.com/python/langchain-core/prompts/string/mustache_schema.md) (function): Get the variables from a mustache template. - [mustache_template_vars](https://reference.langchain.com/python/langchain-core/prompts/string/mustache_template_vars.md) (function): Get the top-level variables from a mustache template - [nested_element](https://reference.langchain.com/python/langchain-core/output_parsers/xml/nested_element.md) (function): Get nested element from path. - [node_data_json](https://reference.langchain.com/python/langchain-core/runnables/graph/node_data_json.md) (function): Convert the data of a node to a JSON-serializable format. - [node_data_str](https://reference.langchain.com/python/langchain-core/runnables/graph/node_data_str.md) (function): Convert the data of a node to a string. - [parse_and_check_json_markdown](https://reference.langchain.com/python/langchain-core/utils/json/parse_and_check_json_markdown.md) (function): Parse and check a JSON string from a Markdown string - [parse_json_markdown](https://reference.langchain.com/python/langchain-core/utils/json/parse_json_markdown.md) (function): Parse a JSON string from a Markdown string. - [parse_partial_json](https://reference.langchain.com/python/langchain-core/utils/json/parse_partial_json.md) (function): Parse a JSON string that may be missing closing braces. - [parse_tag](https://reference.langchain.com/python/langchain-core/utils/mustache/parse_tag.md) (function): Parse a tag from a template. - [parse_tool_call](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/parse_tool_call.md) (function): Parse a single tool call. - [parse_tool_calls](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/parse_tool_calls.md) (function): Parse a list of tool calls. - [patch_config](https://reference.langchain.com/python/langchain-core/runnables/config/patch_config.md) (function): Patch a config with new values. - [pre_init](https://reference.langchain.com/python/langchain-core/utils/pydantic/pre_init.md) (function): Decorator to run a function before model initialization. - [prefix_config_spec](https://reference.langchain.com/python/langchain-core/runnables/configurable/prefix_config_spec.md) (function): Prefix the id of a `ConfigurableFieldSpec` - [print_sys_info](https://reference.langchain.com/python/langchain-core/sys_info/print_sys_info.md) (function): Print information about the environment for debugging purposes. - [print_text](https://reference.langchain.com/python/langchain-core/utils/input/print_text.md) (function): Print text with highlighting and no end characters - [py_anext](https://reference.langchain.com/python/langchain-core/utils/aiter/py_anext.md) (function): Pure-Python implementation of `anext()` for testing purposes - [pydantic_copy](https://reference.langchain.com/python/langchain-core/tracers/_compat/pydantic_copy.md) (function): Copy any Pydantic model, compatible with both v1 and v2. - [pydantic_to_dict](https://reference.langchain.com/python/langchain-core/tracers/_compat/pydantic_to_dict.md) (function): Convert any Pydantic model to dict, compatible with both v1 and v2. - [r_sa_check](https://reference.langchain.com/python/langchain-core/utils/mustache/r_sa_check.md) (function): Do a final check to see if a tag could be a standalone. - [raise_for_status_with_text](https://reference.langchain.com/python/langchain-core/utils/utils/raise_for_status_with_text.md) (function): Raise an error with the response text. - [register_configure_hook](https://reference.langchain.com/python/langchain-core/tracers/context/register_configure_hook.md) (function): Register a configure hook. - [register_translator](https://reference.langchain.com/python/langchain-core/messages/block_translators/register_translator.md) (function): Register content translators for a provider in `PROVIDER_TRANSLATORS`. - [rename_parameter](https://reference.langchain.com/python/langchain-core/_api/deprecation/rename_parameter.md) (function): Decorator indicating that parameter *old* of *func* is renamed to *new* - [render](https://reference.langchain.com/python/langchain-core/utils/mustache/render.md) (function): Render a mustache template - [render_text_description](https://reference.langchain.com/python/langchain-core/tools/render/render_text_description.md) (function): Render the tool name and description in plain text. - [render_text_description_and_args](https://reference.langchain.com/python/langchain-core/tools/render/render_text_description_and_args.md) (function): Render the tool name, description, and args in plain text. - [run_construct](https://reference.langchain.com/python/langchain-core/tracers/_compat/run_construct.md) (function): Construct run without validation, compatible with both Pydantic v1 and v2. - [run_copy](https://reference.langchain.com/python/langchain-core/tracers/_compat/run_copy.md) (function): Copy run, compatible with both Pydantic v1 and v2. - [run_in_executor](https://reference.langchain.com/python/langchain-core/runnables/config/run_in_executor.md) (function): Run a function in an executor. - [run_to_dict](https://reference.langchain.com/python/langchain-core/tracers/_compat/run_to_dict.md) (function): Convert run to dict, compatible with both Pydantic v1 and v2. - [sanitize_for_postgres](https://reference.langchain.com/python/langchain-core/utils/strings/sanitize_for_postgres.md) (function): Sanitize text by removing NUL bytes that are incompatible with PostgreSQL - [secret_from_env](https://reference.langchain.com/python/langchain-core/utils/utils/secret_from_env.md) (function): Secret from env. - [set_config_context](https://reference.langchain.com/python/langchain-core/runnables/config/set_config_context.md) (function): Set the child Runnable config + tracing context. - [set_debug](https://reference.langchain.com/python/langchain-core/globals/set_debug.md) (function): Set a new value for the `debug` global setting. - [set_llm_cache](https://reference.langchain.com/python/langchain-core/globals/set_llm_cache.md) (function): Set a new LLM cache, overwriting the previous value, if any. - [set_verbose](https://reference.langchain.com/python/langchain-core/globals/set_verbose.md) (function): Set a new value for the `verbose` global setting. - [shielded](https://reference.langchain.com/python/langchain-core/callbacks/manager/shielded.md) (function): Makes so an awaitable method is always shielded from cancellation. - [sorted_values](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/sorted_values.md) (function): Return a list of values in dict sorted by key. - [stringify_dict](https://reference.langchain.com/python/langchain-core/utils/strings/stringify_dict.md) (function): Stringify a dictionary. - [stringify_value](https://reference.langchain.com/python/langchain-core/utils/strings/stringify_value.md) (function): Stringify a value. - [subtract_usage](https://reference.langchain.com/python/langchain-core/messages/ai/subtract_usage.md) (function): Recursively subtract two `UsageMetadata` objects - [suppress_langchain_beta_warning](https://reference.langchain.com/python/langchain-core/_api/beta_decorator/suppress_langchain_beta_warning.md) (function): Context manager to suppress `LangChainDeprecationWarning`. - [suppress_langchain_deprecation_warning](https://reference.langchain.com/python/langchain-core/_api/deprecation/suppress_langchain_deprecation_warning.md) (function): Context manager to suppress `LangChainDeprecationWarning`. - [surface_langchain_beta_warnings](https://reference.langchain.com/python/langchain-core/_api/beta_decorator/surface_langchain_beta_warnings.md) (function): Unmute LangChain beta warnings. - [surface_langchain_deprecation_warnings](https://reference.langchain.com/python/langchain-core/_api/deprecation/surface_langchain_deprecation_warnings.md) (function): Unmute LangChain deprecation warnings. - [tee_peer](https://reference.langchain.com/python/langchain-core/utils/aiter/tee_peer.md) (function): An individual iterator of a `tee` - [tee_peer](https://reference.langchain.com/python/langchain-core/utils/iter/tee_peer.md) (function): An individual iterator of a `.tee` - [to_json_not_implemented](https://reference.langchain.com/python/langchain-core/load/serializable/to_json_not_implemented.md) (function): Serialize a "not implemented" object. - [tokenize](https://reference.langchain.com/python/langchain-core/utils/mustache/tokenize.md) (function): Tokenize a mustache template - [tool](https://reference.langchain.com/python/langchain-core/tools/convert/tool.md) (function): Convert Python functions and `Runnables` to LangChain tools - [tool_call](https://reference.langchain.com/python/langchain-core/messages/tool/tool_call.md) (function): Create a tool call. - [tool_call_chunk](https://reference.langchain.com/python/langchain-core/messages/tool/tool_call_chunk.md) (function): Create a tool call chunk. - [tool_example_to_messages](https://reference.langchain.com/python/langchain-core/utils/function_calling/tool_example_to_messages.md) (function): Convert an example into a list of messages that can be fed into an LLM - [trace_as_chain_group](https://reference.langchain.com/python/langchain-core/callbacks/manager/trace_as_chain_group.md) (function): Get a callback manager for a chain group in a context manager - [tracing_v2_enabled](https://reference.langchain.com/python/langchain-core/tracers/context/tracing_v2_enabled.md) (function): Instruct LangChain to log all runs in context to LangSmith. - [translate_content](https://reference.langchain.com/python/langchain-core/messages/block_translators/groq/translate_content.md) (function): Derive standard content blocks from a message with groq content. - [translate_content](https://reference.langchain.com/python/langchain-core/messages/block_translators/openai/translate_content.md) (function): Derive standard content blocks from a message with OpenAI content. - [translate_content](https://reference.langchain.com/python/langchain-core/messages/block_translators/bedrock/translate_content.md) (function): Derive standard content blocks from a message with Bedrock content. - [translate_content](https://reference.langchain.com/python/langchain-core/messages/block_translators/anthropic/translate_content.md) (function): Derive standard content blocks from a message with Anthropic content. - [translate_content](https://reference.langchain.com/python/langchain-core/messages/block_translators/bedrock_converse/translate_content.md) (function): Derive standard content blocks from a message with Bedrock Converse content. - [translate_content](https://reference.langchain.com/python/langchain-core/messages/block_translators/google_genai/translate_content.md) (function): Derive standard content blocks from a message with Google (GenAI) content. - [translate_content_chunk](https://reference.langchain.com/python/langchain-core/messages/block_translators/groq/translate_content_chunk.md) (function): Derive standard content blocks from a message chunk with groq content. - [translate_content_chunk](https://reference.langchain.com/python/langchain-core/messages/block_translators/openai/translate_content_chunk.md) (function): Derive standard content blocks from a message chunk with OpenAI content. - [translate_content_chunk](https://reference.langchain.com/python/langchain-core/messages/block_translators/bedrock/translate_content_chunk.md) (function): Derive standard content blocks from a message chunk with Bedrock content. - [translate_content_chunk](https://reference.langchain.com/python/langchain-core/messages/block_translators/anthropic/translate_content_chunk.md) (function): Derive standard content blocks from a message chunk with Anthropic content. - [translate_content_chunk](https://reference.langchain.com/python/langchain-core/messages/block_translators/bedrock_converse/translate_content_chunk.md) (function): Derive standard content blocks from a chunk with Bedrock Converse content. - [translate_content_chunk](https://reference.langchain.com/python/langchain-core/messages/block_translators/google_genai/translate_content_chunk.md) (function): Derive standard content blocks from a chunk with Google (GenAI) content. - [translate_grounding_metadata_to_citations](https://reference.langchain.com/python/langchain-core/messages/block_translators/google_genai/translate_grounding_metadata_to_citations.md) (function): Translate Google AI grounding metadata to LangChain Citations. - [trim_messages](https://reference.langchain.com/python/langchain-core/messages/utils/trim_messages.md) (function): Trim messages to be below a token count - [try_json_stringify](https://reference.langchain.com/python/langchain-core/tracers/stdout/try_json_stringify.md) (function): Try to stringify an object to JSON. - [try_neq_default](https://reference.langchain.com/python/langchain-core/load/serializable/try_neq_default.md) (function): Try to determine if a value is different from the default. - [update_cache](https://reference.langchain.com/python/langchain-core/language_models/llms/update_cache.md) (function): Update the cache and get the LLM output. - [uuid7](https://reference.langchain.com/python/langchain-core/utils/uuid/uuid7.md) (function): Generate a UUID from a Unix timestamp in nanoseconds and random bits - [validate_jinja2](https://reference.langchain.com/python/langchain-core/prompts/string/validate_jinja2.md) (function): Validate that the input variables are valid for the template - [validate_safe_url](https://reference.langchain.com/python/langchain-core/_security/_ssrf_protection/validate_safe_url.md) (function): Validate a URL for SSRF protection - [wait_for_all_evaluators](https://reference.langchain.com/python/langchain-core/tracers/evaluation/wait_for_all_evaluators.md) (function): Wait for all tracers to finish. - [wait_for_all_tracers](https://reference.langchain.com/python/langchain-core/tracers/langchain/wait_for_all_tracers.md) (function): Wait for all tracers to finish. - [warn_beta](https://reference.langchain.com/python/langchain-core/_api/beta_decorator/warn_beta.md) (function): Display a standardized beta annotation. - [warn_deprecated](https://reference.langchain.com/python/langchain-core/_api/deprecation/warn_deprecated.md) (function): Display a standardized deprecation. - [xor_args](https://reference.langchain.com/python/langchain-core/utils/utils/xor_args.md) (function): Validate specified keyword args are mutually exclusive. #### Methods - [aacquire](https://reference.langchain.com/python/langchain-core/rate_limiters/BaseRateLimiter/aacquire.md) (method): Attempt to acquire the necessary tokens for the rate limiter - [aacquire](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/aacquire.md) (method): Attempt to acquire a token from the rate limiter - [aadd_documents](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/aadd_documents.md) (method): Async run more documents through the embeddings and add to the `VectorStore`. - [aadd_documents](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/aadd_documents.md) (method): Async add documents to the `VectorStore`. - [aadd_documents](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/aadd_documents.md) (method) - [aadd_example](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/aadd_example.md) (method): Async add new example to vectorstore. - [aadd_example](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/aadd_example.md) (method): Async add new example to list. - [aadd_example](https://reference.langchain.com/python/langchain-core/example_selectors/base/BaseExampleSelector/aadd_example.md) (method): Async add new example to store. - [aadd_messages](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/aadd_messages.md) (method): Async add a list of messages. - [aadd_messages](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory/aadd_messages.md) (method): Async add messages to the store. - [aadd_texts](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/aadd_texts.md) (method): Async run more texts through the embeddings and add to the `VectorStore`. - [abatch](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/abatch.md) (method): Default implementation runs `ainvoke` in parallel using `asyncio.gather` - [abatch](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/abatch.md) (method) - [abatch](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel/abatch.md) (method) - [abatch_as_completed](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/abatch_as_completed.md) (method): Run `ainvoke` in parallel on a list of inputs - [abatch_as_completed](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/abatch_as_completed.md) (method) - [accept](https://reference.langchain.com/python/langchain-core/structured_query/Expr/accept.md) (method): Accept a visitor. - [aclear](https://reference.langchain.com/python/langchain-core/caches/BaseCache/aclear.md) (method): Async clear cache that can take additional keyword arguments. - [aclear](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache/aclear.md) (method): Async clear cache. - [aclear](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/aclear.md) (method): Async remove all messages from the store. - [aclear](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory/aclear.md) (method): Async clear all messages from the store. - [aclose](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/_SendStream/aclose.md) (method): Async schedule the done object write the queue using the original loop. - [aclose](https://reference.langchain.com/python/langchain-core/utils/aiter/Tee/aclose.md) (method): Async close all child iterators. - [acompress_documents](https://reference.langchain.com/python/langchain-core/documents/compressor/BaseDocumentCompressor/acompress_documents.md) (method): Async compress retrieved documents given the query context. - [acquire](https://reference.langchain.com/python/langchain-core/rate_limiters/BaseRateLimiter/acquire.md) (method): Attempt to acquire the necessary tokens for the rate limiter - [acquire](https://reference.langchain.com/python/langchain-core/rate_limiters/InMemoryRateLimiter/acquire.md) (method): Attempt to acquire a token from the rate limiter - [acreate_schema](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/acreate_schema.md) (method): Asynchronously create the database schema for the record manager. - [acreate_schema](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/acreate_schema.md) (method): In-memory schema creation is simply ensuring the structure is initialized. - [add_ai_message](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/add_ai_message.md) (method): Convenience method for adding an `AIMessage` string to the store - [add_documents](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/add_documents.md) (method): Add or update documents in the `VectorStore`. - [add_documents](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/add_documents.md) (method): Add documents to the `VectorStore`. - [add_documents](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/add_documents.md) (method) - [add_edge](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/add_edge.md) (method): Add an edge to the graph and return it. - [add_edge](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/add_edge.md) (method): Adds an edge to the graph. - [add_edges](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/add_edges.md) (method): Add edges to the graph. - [add_example](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/_VectorStoreExampleSelector/add_example.md) (method): Add a new example to vectorstore. - [add_example](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/add_example.md) (method): Add new example to list. - [add_example](https://reference.langchain.com/python/langchain-core/example_selectors/base/BaseExampleSelector/add_example.md) (method): Add new example to store. - [add_handler](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/add_handler.md) (method): Add a handler to the callback manager. - [add_message](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/add_message.md) (method): Add a Message object to the store. - [add_message](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory/add_message.md) (method): Add a self-created message to the store. - [add_messages](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/add_messages.md) (method): Add a list of messages - [add_metadata](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/add_metadata.md) (method): Add metadata to the callback manager. - [add_node](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/add_node.md) (method): Add a node to the graph and return it. - [add_node](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/add_node.md) (method): Adds a node to the graph. - [add_nodes](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/add_nodes.md) (method): Add nodes to the graph. - [add_subgraph](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/add_subgraph.md) (method): Add subgraphs to the graph. - [add_tags](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/add_tags.md) (method): Add tags to the callback manager. - [add_texts](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/add_texts.md) (method): Run more texts through the embeddings and add to the `VectorStore`. - [add_user_message](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/add_user_message.md) (method): Convenience method for adding a human message string to the store - [adelete](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex/adelete.md) (method): Delete by IDs or other criteria - [adelete](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/adelete.md) (method): Async delete by vector ID or other criteria. - [adelete](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/adelete.md) (method) - [adelete_keys](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/adelete_keys.md) (method): Asynchronously delete specified records from the database. - [adelete_keys](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/adelete_keys.md) (method): Async delete specified records from the database. - [aembed_documents](https://reference.langchain.com/python/langchain-core/embeddings/embeddings/Embeddings/aembed_documents.md) (method): Asynchronous Embed search docs. - [aembed_query](https://reference.langchain.com/python/langchain-core/embeddings/embeddings/Embeddings/aembed_query.md) (method): Asynchronous Embed query text. - [aexists](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/aexists.md) (method): Asynchronously check if the provided keys exist in the database. - [aexists](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/aexists.md) (method): Async check if the provided keys exist in the database. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/aformat.md) (method): Async format the prompt with inputs generating a string - [aformat](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/aformat.md) (method): Async format the prompt with inputs generating a string - [aformat](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/aformat.md) (method): Format the prompt with the inputs. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/aformat.md) (method): Async format the prompt with the inputs. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/aformat.md) (method): Async format the prompt with the inputs. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/aformat.md) (method): Async format the prompt with the inputs. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/aformat.md) (method): Async format the prompt template. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatMessagePromptTemplate/aformat.md) (method): Async format the prompt template. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/aformat.md) (method): Async format the prompt template. - [aformat](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/aformat.md) (method): Async format the chat template into a string. - [aformat_messages](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/aformat_messages.md) (method): Async format messages from kwargs. - [aformat_messages](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/aformat_messages.md) (method): Async format kwargs into a list of messages. - [aformat_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/aformat_messages.md) (method): Async format messages from kwargs. - [aformat_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/aformat_messages.md) (method): Async format messages from kwargs. - [aformat_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/aformat_messages.md) (method): Async format kwargs into a list of messages. - [aformat_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/aformat_messages.md) (method): Async format the chat template into a list of finalized messages. - [aformat_prompt](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate/aformat_prompt.md) (method): Async format the prompt with the inputs. - [aformat_prompt](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/aformat_prompt.md) (method): Async create `PromptValue`. - [aformat_prompt](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/aformat_prompt.md) (method): Async format the prompt with the inputs. - [aformat_prompt](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/aformat_prompt.md) (method): Async format prompt - [afrom_documents](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/afrom_documents.md) (method): Async return `VectorStore` initialized from documents and embeddings. - [afrom_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/SemanticSimilarityExampleSelector/afrom_examples.md) (method): Async create k-shot example selector using example list and embeddings - [afrom_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/MaxMarginalRelevanceExampleSelector/afrom_examples.md) (method): Create k-shot example selector using example list and embeddings - [afrom_texts](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/afrom_texts.md) (method): Async return `VectorStore` initialized from texts and embeddings. - [afrom_texts](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/afrom_texts.md) (method) - [agenerate](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/agenerate.md) (method): Asynchronously pass a sequence of prompts to a model and return generations - [agenerate](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/agenerate.md) (method): Asynchronously pass a sequence of prompts to a model and return generations - [agenerate_prompt](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/agenerate_prompt.md) (method) - [agenerate_prompt](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/agenerate_prompt.md) (method): Asynchronously pass a sequence of prompts and return model generations - [agenerate_prompt](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/agenerate_prompt.md) (method) - [aget](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex/aget.md) (method): Get documents by id - [aget_by_ids](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/aget_by_ids.md) (method): Async get documents by their IDs - [aget_by_ids](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/aget_by_ids.md) (method): Async get documents by their ids. - [aget_messages](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/aget_messages.md) (method): Async version of getting messages - [aget_messages](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory/aget_messages.md) (method): Async version of getting messages - [aget_time](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/aget_time.md) (method): Asynchronously get the current server time as a high resolution timestamp - [aget_time](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/aget_time.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/retrievers/BaseRetriever/ainvoke.md) (method): Asynchronously invoke the retriever to get relevant documents - [ainvoke](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/ainvoke.md) (method): Async invoke the prompt. - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/ainvoke.md) (method): Transform a single input into an output. - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/ainvoke.md) (method): Invoke this `Runnable` asynchronously. - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/tools/simple/Tool/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseGenerationOutputParser/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/ainvoke.md) (method) - [ainvoke](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/ainvoke.md) (method) - [alazy_load](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseLoader/alazy_load.md) (method): A lazy loader for `Document`. - [alist_keys](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/alist_keys.md) (method): Asynchronously list records in the database based on the provided filters. - [alist_keys](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/alist_keys.md) (method): Async list records in the database based on the provided filters. - [aload](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseLoader/aload.md) (method): Load data into `Document` objects. - [alookup](https://reference.langchain.com/python/langchain-core/caches/BaseCache/alookup.md) (method): Async look up based on `prompt` and `llm_string` - [alookup](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache/alookup.md) (method): Async look up based on `prompt` and `llm_string`. - [amax_marginal_relevance_search](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/amax_marginal_relevance_search.md) (method): Async return docs selected using the maximal marginal relevance - [amax_marginal_relevance_search](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/amax_marginal_relevance_search.md) (method) - [amax_marginal_relevance_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/amax_marginal_relevance_search_by_vector.md) (method): Async return docs selected using the maximal marginal relevance - [amdelete](https://reference.langchain.com/python/langchain-core/stores/BaseStore/amdelete.md) (method): Async delete the given keys and their associated values. - [amdelete](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/amdelete.md) (method) - [amget](https://reference.langchain.com/python/langchain-core/stores/BaseStore/amget.md) (method): Async get the values associated with the given keys. - [amget](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/amget.md) (method) - [amset](https://reference.langchain.com/python/langchain-core/stores/BaseStore/amset.md) (method): Async set the values for the given keys. - [amset](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/amset.md) (method) - [aparse](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/aparse.md) (method): Async parse a single string model output into some structure. - [aparse_result](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseLLMOutputParser/aparse_result.md) (method): Parse a list of candidate model `Generation` objects into a specific format. - [aparse_result](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/aparse_result.md) (method): Parse a list of candidate model `Generation` objects into a specific format - [append](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/append.md) (method): Append a message to the end of the chat template. - [arun](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/arun.md) (method): Run the tool asynchronously. - [as_bytes](https://reference.langchain.com/python/langchain-core/documents/base/Blob/as_bytes.md) (method): Read data as bytes. - [as_bytes_io](https://reference.langchain.com/python/langchain-core/documents/base/Blob/as_bytes_io.md) (method): Read data as a byte stream. - [as_retriever](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/as_retriever.md) (method): Return `VectorStoreRetriever` initialized from this `VectorStore`. - [as_string](https://reference.langchain.com/python/langchain-core/documents/base/Blob/as_string.md) (method): Read data as a string. - [as_tool](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/as_tool.md) (method): Create a `BaseTool` from a `Runnable` - [asearch](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/asearch.md) (method): Async return docs most similar to query using a specified search type. - [aselect_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/SemanticSimilarityExampleSelector/aselect_examples.md) (method): Asynchronously select examples based on semantic similarity. - [aselect_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/MaxMarginalRelevanceExampleSelector/aselect_examples.md) (method): Asynchronously select examples based on Max Marginal Relevance. - [aselect_examples](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/aselect_examples.md) (method): Async select which examples to use based on the input lengths. - [aselect_examples](https://reference.langchain.com/python/langchain-core/example_selectors/base/BaseExampleSelector/aselect_examples.md) (method): Async select which examples to use based on the inputs. - [asimilarity_search](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/asimilarity_search.md) (method): Async return docs most similar to query. - [asimilarity_search](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/asimilarity_search.md) (method) - [asimilarity_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/asimilarity_search_by_vector.md) (method): Async return docs most similar to embedding vector. - [asimilarity_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/asimilarity_search_by_vector.md) (method) - [asimilarity_search_with_relevance_scores](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/asimilarity_search_with_relevance_scores.md) (method): Async return docs and relevance scores in the range `[0, 1]` - [asimilarity_search_with_score](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/asimilarity_search_with_score.md) (method): Async run similarity search with distance. - [asimilarity_search_with_score](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/asimilarity_search_with_score.md) (method) - [assign](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/assign.md) (method): Merge the Dict input with the output produced by the mapping argument. - [assign](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/assign.md) (method): Assigns new fields to the `dict` output of this `Runnable` - [astream](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/astream.md) (method): First evaluates the condition, then delegate to `True` or `False` branch. - [astream](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/astream.md) (method): Default implementation of `astream`, which calls `ainvoke` - [astream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/astream.md) (method) - [astream](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeStreamingListLLM/astream.md) (method) - [astream_events](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/astream_events.md) (method): Generate a stream of events - [astream_events](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/astream_events.md) (method) - [astream_events](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/astream_events.md) (method) - [astream_log](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/astream_log.md) (method): Stream all output from a `Runnable`, as reported to the callback system - [atransform](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/atransform.md) (method): Transform inputs to outputs - [atransform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/atransform.md) (method) - [atransform](https://reference.langchain.com/python/langchain-core/output_parsers/transform/BaseTransformOutputParser/atransform.md) (method): Async transform the input into the output format. - [atransform_documents](https://reference.langchain.com/python/langchain-core/documents/transformers/BaseDocumentTransformer/atransform_documents.md) (method): Asynchronously transform a list of documents. - [aupdate](https://reference.langchain.com/python/langchain-core/caches/BaseCache/aupdate.md) (method): Async update cache based on `prompt` and `llm_string` - [aupdate](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache/aupdate.md) (method): Async update cache based on `prompt` and `llm_string`. - [aupdate](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/aupdate.md) (method): Asynchronously upsert records into the database. - [aupdate](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/aupdate.md) (method): Async upsert records into the database. - [aupsert](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex/aupsert.md) (method): Add or update documents in the `VectorStore` - [ayield_keys](https://reference.langchain.com/python/langchain-core/stores/BaseStore/ayield_keys.md) (method): Async get an iterator over keys that match the given prefix. - [ayield_keys](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/ayield_keys.md) (method): Async get an async iterator over keys that match the given prefix. - [batch](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/batch.md) (method): Default implementation runs invoke in parallel using a thread pool executor - [batch](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/batch.md) (method) - [batch](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models/FakeListChatModel/batch.md) (method) - [batch_as_completed](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/batch_as_completed.md) (method): Run `invoke` in parallel on a list of inputs - [batch_as_completed](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/batch_as_completed.md) (method) - [bind](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/bind.md) (method): Bind arguments to a `Runnable`, returning a new `Runnable` - [bind](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEach/bind.md) (method) - [bind](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBinding/bind.md) (method): Bind additional kwargs to a `Runnable`, returning a new `Runnable`. - [bind_tools](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/bind_tools.md) (method): Bind tools to the model. - [box](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/box.md) (method): Create a box on ASCII canvas. - [check_blob_is_valid](https://reference.langchain.com/python/langchain-core/documents/base/Blob/check_blob_is_valid.md) (method): Verify that either data or path is provided. - [check_examples_and_selector](https://reference.langchain.com/python/langchain-core/prompts/few_shot/_FewShotPromptTemplateMixin/check_examples_and_selector.md) (method): Check that one and only one of `examples`/`example_selector` are provided. - [check_examples_and_selector](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/check_examples_and_selector.md) (method): Check that one and only one of examples/example_selector are provided. - [clear](https://reference.langchain.com/python/langchain-core/caches/BaseCache/clear.md) (method): Clear cache that can take additional keyword arguments. - [clear](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache/clear.md) (method): Clear cache. - [clear](https://reference.langchain.com/python/langchain-core/chat_history/BaseChatMessageHistory/clear.md) (method): Remove all messages from the store. - [clear](https://reference.langchain.com/python/langchain-core/chat_history/InMemoryChatMessageHistory/clear.md) (method): Clear all messages from the store. - [close](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/_SendStream/close.md) (method): Schedule the done object write the queue using the original loop - [close](https://reference.langchain.com/python/langchain-core/utils/iter/Tee/close.md) (method): Close all child iterators. - [close](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/close.md) (method): Close the file if it's open - [close](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/close.md) (method): Close the parser - [coerce_args](https://reference.langchain.com/python/langchain-core/messages/tool/ToolMessage/coerce_args.md) (method): Coerce the model arguments to the correct types. - [compress_documents](https://reference.langchain.com/python/langchain-core/documents/compressor/BaseDocumentCompressor/compress_documents.md) (method): Compress retrieved documents given the query context. - [config_schema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/config_schema.md) (method): The type of config this `Runnable` accepts specified as a Pydantic model - [configurable_alternatives](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSerializable/configurable_alternatives.md) (method): Configure alternatives for `Runnable` objects that can be set at runtime. - [configurable_fields](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableFields/configurable_fields.md) (method) - [configurable_fields](https://reference.langchain.com/python/langchain-core/runnables/configurable/RunnableConfigurableAlternatives/configurable_fields.md) (method) - [configurable_fields](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSerializable/configurable_fields.md) (method): Configure particular `Runnable` fields at runtime. - [configure](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/configure.md) (method): Configure the callback manager. - [configure](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/configure.md) (method): Configure the async callback manager. - [copy](https://reference.langchain.com/python/langchain-core/runnables/graph/Edge/copy.md) (method): Return a copy of the edge with optional new source and target nodes. - [copy](https://reference.langchain.com/python/langchain-core/runnables/graph/Node/copy.md) (method): Return a copy of the node with optional new id and name. - [copy](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup/copy.md) (method) - [copy](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup/copy.md) (method): Return a copy the async callback manager. - [copy](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/copy.md) (method): Return a copy of the callback manager. - [create_schema](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/create_schema.md) (method): Create the database schema for the record manager. - [create_schema](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/create_schema.md) (method): In-memory schema creation is simply ensuring the structure is initialized. - [delete](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex/delete.md) (method): Delete by IDs or other criteria - [delete](https://reference.langchain.com/python/langchain-core/indexing/in_memory/InMemoryDocumentIndex/delete.md) (method): Delete by IDs. - [delete](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/delete.md) (method): Delete by vector ID or other criteria. - [delete](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/delete.md) (method) - [delete_keys](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/delete_keys.md) (method): Delete specified records from the database. - [delete_keys](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/delete_keys.md) (method): Delete specified records from the database. - [dict](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/dict.md) (method): Return dictionary representation of prompt. - [dict](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/dict.md) (method): Return dictionary representation of output parser. - [dict](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/dict.md) (method): Return a dictionary of the LLM. - [dict](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/dict.md) (method): Return a dictionary of the LLM. - [draw](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/draw.md) (method): Draws ASCII canvas on the screen. - [draw](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/draw.md) (method): Draw the given state graph into a PNG file - [draw_ascii](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/draw_ascii.md) (method): Draw the graph as an ASCII art string. - [draw_mermaid](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/draw_mermaid.md) (method): Draw the graph as a Mermaid syntax string. - [draw_mermaid_png](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/draw_mermaid_png.md) (method): Draw the graph as a PNG image using Mermaid. - [draw_png](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/draw_png.md) (method): Draw the graph as a PNG image. - [dump](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/dump.md) (method): Dump the vector store to a file. - [embed_documents](https://reference.langchain.com/python/langchain-core/embeddings/fake/FakeEmbeddings/embed_documents.md) (method) - [embed_documents](https://reference.langchain.com/python/langchain-core/embeddings/fake/DeterministicFakeEmbedding/embed_documents.md) (method) - [embed_documents](https://reference.langchain.com/python/langchain-core/embeddings/embeddings/Embeddings/embed_documents.md) (method): Embed search docs. - [embed_query](https://reference.langchain.com/python/langchain-core/embeddings/fake/FakeEmbeddings/embed_query.md) (method) - [embed_query](https://reference.langchain.com/python/langchain-core/embeddings/fake/DeterministicFakeEmbedding/embed_query.md) (method) - [embed_query](https://reference.langchain.com/python/langchain-core/embeddings/embeddings/Embeddings/embed_query.md) (method): Embed query text. - [exists](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/exists.md) (method): Check if the provided keys exist in the database. - [exists](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/exists.md) (method): Check if the provided keys exist in the database. - [extend](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/extend.md) (method): Extend the chat template with a sequence of messages. - [extend](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/extend.md) (method): Add all nodes and edges from another graph - [first_node](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/first_node.md) (method): Find the single node that is not a target of any edge - [flatten](https://reference.langchain.com/python/langchain-core/outputs/llm_result/LLMResult/flatten.md) (method): Flatten generations into a single list - [format](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate/format.md) (method) - [format](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/format.md) (method): Format the prompt with inputs generating a string - [format](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/format.md) (method): Format the prompt with inputs generating a string - [format](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/format.md) (method): Format the prompt with the inputs. - [format](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/format.md) (method): Format the prompt with the inputs. - [format](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/format.md) (method): Format the prompt with the inputs. - [format](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/format.md) (method): Format the prompt with the inputs. - [format](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/format.md) (method): Format the prompt with the inputs. - [format](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/format.md) (method): Format the prompt template. - [format](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatMessagePromptTemplate/format.md) (method): Format the prompt template. - [format](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/format.md) (method): Format the prompt template. - [format](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/format.md) (method): Format the chat template into a string. - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/format_messages.md) (method): Format messages from kwargs - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/format_messages.md) (method): Format kwargs into a list of messages. - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder/format_messages.md) (method): Format messages from kwargs. - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/format_messages.md) (method): Format messages from kwargs. - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/format_messages.md) (method): Format messages from kwargs. - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/format_messages.md) (method): Format kwargs into a list of messages. - [format_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/format_messages.md) (method): Format the chat template into a list of finalized messages. - [format_prompt](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate/format_prompt.md) (method): Format the prompt with the inputs. - [format_prompt](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/format_prompt.md) (method): Create `PromptValue`. - [format_prompt](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/format_prompt.md) (method): Format the prompt with the inputs. - [format_prompt](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/format_prompt.md) (method): Format prompt - [from_data](https://reference.langchain.com/python/langchain-core/documents/base/Blob/from_data.md) (method): Initialize the `Blob` from in-memory data. - [from_documents](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/from_documents.md) (method): Return `VectorStore` initialized from documents and embeddings. - [from_examples](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/from_examples.md) (method): Take examples in list format with prefix and suffix to create a prompt - [from_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/SemanticSimilarityExampleSelector/from_examples.md) (method): Create k-shot example selector using example list and embeddings - [from_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/MaxMarginalRelevanceExampleSelector/from_examples.md) (method): Create k-shot example selector using example list and embeddings - [from_file](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/from_file.md) (method): Load a prompt from a file. - [from_function](https://reference.langchain.com/python/langchain-core/tools/structured/StructuredTool/from_function.md) (method): Create tool from a given function - [from_function](https://reference.langchain.com/python/langchain-core/tools/simple/Tool/from_function.md) (method): Initialize tool from a function. - [from_messages](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/from_messages.md) (method): Create a chat prompt template from a variety of message formats. - [from_messages_and_schema](https://reference.langchain.com/python/langchain-core/prompts/structured/StructuredPrompt/from_messages_and_schema.md) (method): Create a chat prompt template from a variety of message formats. - [from_path](https://reference.langchain.com/python/langchain-core/documents/base/Blob/from_path.md) (method): Load the blob from a path like object. - [from_template](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/from_template.md) (method): Load a prompt template from a template - [from_template](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/from_template.md) (method): Create a class from a string template. - [from_template](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/from_template.md) (method): Create a class from a string template. - [from_template](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/from_template.md) (method): Create a chat prompt template from a template string - [from_template_file](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/from_template_file.md) (method): Create a class from a template file. - [from_template_file](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/from_template_file.md) (method): Create a class from a template file. - [from_texts](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/from_texts.md) (method): Return `VectorStore` initialized from texts and embeddings. - [from_texts](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/from_texts.md) (method) - [generate](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/generate.md) (method): Pass a sequence of prompts to a model and return generations - [generate](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/generate.md) (method): Pass a sequence of prompts to the model and return model generations - [generate_prompt](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/generate_prompt.md) (method) - [generate_prompt](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/generate_prompt.md) (method): Pass a sequence of prompts to the model and return model generations - [generate_prompt](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/generate_prompt.md) (method) - [get](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex/get.md) (method): Get documents by id - [get](https://reference.langchain.com/python/langchain-core/indexing/in_memory/InMemoryDocumentIndex/get.md) (method) - [get_breadcrumbs](https://reference.langchain.com/python/langchain-core/tracers/stdout/FunctionCallbackHandler/get_breadcrumbs.md) (method): Get the breadcrumbs of a run. - [get_by_ids](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/get_by_ids.md) (method): Get documents by their IDs - [get_by_ids](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/get_by_ids.md) (method): Get documents by their ids. - [get_child](https://reference.langchain.com/python/langchain-core/callbacks/manager/ParentRunManager/get_child.md) (method): Get a child callback manager. - [get_child](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncParentRunManager/get_child.md) (method): Get a child callback manager. - [get_config_jsonschema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_config_jsonschema.md) (method): Get a JSON schema that represents the config of the `Runnable`. - [get_edge_label](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/get_edge_label.md) (method): Returns the label to use for an edge. - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic/PydanticOutputParser/get_format_instructions.md) (method): Return the format instructions for the JSON output. - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/json/JsonOutputParser/get_format_instructions.md) (method): Return the format instructions for the JSON output. - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XMLOutputParser/get_format_instructions.md) (method): Return the format instructions for the XML output. - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/get_format_instructions.md) (method): Instructions on how the LLM output should be formatted. - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/list/CommaSeparatedListOutputParser/get_format_instructions.md) (method): Return the format instructions for the comma-separated list output. - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/list/NumberedListOutputParser/get_format_instructions.md) (method) - [get_format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/list/MarkdownListOutputParser/get_format_instructions.md) (method): Return the format instructions for the Markdown list output. - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/get_graph.md) (method) - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/get_graph.md) (method) - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_graph.md) (method): Return a graph representation of this `Runnable`. - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/get_graph.md) (method): Get the graph representation of the `Runnable`. - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/get_graph.md) (method): Get the graph representation of the `Runnable`. - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/get_graph.md) (method) - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/get_graph.md) (method) - [get_graph](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/get_graph.md) (method) - [get_input_jsonschema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_input_jsonschema.md) (method): Get a JSON schema that represents the input to the `Runnable`. - [get_input_schema](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/get_input_schema.md) (method): Get the input schema for the prompt. - [get_input_schema](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/get_input_schema.md) (method): Get the input schema for the prompt. - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_input_schema.md) (method): Get a Pydantic model that can be used to validate input to the `Runnable` - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/get_input_schema.md) (method): Get the input schema of the `Runnable`. - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/get_input_schema.md) (method): Get the input schema of the `Runnable`. - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/get_input_schema.md) (method): The Pydantic schema for the input to this `Runnable`. - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/get_input_schema.md) (method) - [get_input_schema](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/get_input_schema.md) (method): The tool's input schema. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/agents/AgentAction/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/agents/AgentFinish/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompt_values/PromptValue/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompt_values/StringPromptValue/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/get_lc_namespace.md) (method): Get the namespace of the LangChain object - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/structured/StructuredPrompt/get_lc_namespace.md) (method): Get the namespace of the LangChain object - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/outputs/generation/Generation/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/documents/base/Document/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/output_parsers/string/StrOutputParser/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_lc_namespace](https://reference.langchain.com/python/langchain-core/output_parsers/list/CommaSeparatedListOutputParser/get_lc_namespace.md) (method): Get the namespace of the LangChain object. - [get_name](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/get_name.md) (method) - [get_name](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/get_name.md) (method) - [get_name](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_name.md) (method): Get the name of the `Runnable`. - [get_name](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/get_name.md) (method): Get the name of the `Runnable`. - [get_name](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEach/get_name.md) (method) - [get_name](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/get_name.md) (method) - [get_node_label](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/get_node_label.md) (method): Returns the label to use for a node. - [get_noop_manager](https://reference.langchain.com/python/langchain-core/callbacks/manager/BaseRunManager/get_noop_manager.md) (method): Return a manager that doesn't perform any operations. - [get_num_tokens](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/get_num_tokens.md) (method): Get the number of tokens present in the text - [get_num_tokens_from_messages](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/get_num_tokens_from_messages.md) (method): Get the number of tokens in the messages - [get_output_jsonschema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_output_jsonschema.md) (method): Get a JSON schema that represents the output of the `Runnable`. - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/get_output_schema.md) (method) - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/get_output_schema.md) (method) - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/get_output_schema.md) (method) - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/history/RunnableWithMessageHistory/get_output_schema.md) (method): Get a Pydantic model that can be used to validate output to the `Runnable` - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_output_schema.md) (method): Get a Pydantic model that can be used to validate output to the `Runnable` - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/get_output_schema.md) (method): Get the output schema of the `Runnable`. - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/get_output_schema.md) (method): Get the output schema of the `Runnable`. - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/get_output_schema.md) (method) - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/get_output_schema.md) (method) - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/get_output_schema.md) (method) - [get_output_schema](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/get_output_schema.md) (method) - [get_parents](https://reference.langchain.com/python/langchain-core/tracers/stdout/FunctionCallbackHandler/get_parents.md) (method): Get the parents of a run. - [get_prompts](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/get_prompts.md) (method): Return a list of prompts used by this `Runnable`. - [get_receive_stream](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/_MemoryStream/get_receive_stream.md) (method): Get a reader for the channel. - [get_run_url](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/get_run_url.md) (method): Get the LangSmith root run URL. - [get_send_stream](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/_MemoryStream/get_send_stream.md) (method): Get a writer for the channel. - [get_sync](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncRunManager/get_sync.md) (method): Get the equivalent sync `RunManager`. - [get_sync](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForLLMRun/get_sync.md) (method): Get the equivalent sync `RunManager`. - [get_sync](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainRun/get_sync.md) (method): Get the equivalent sync `RunManager`. - [get_sync](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForToolRun/get_sync.md) (method): Get the equivalent sync `RunManager`. - [get_sync](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForRetrieverRun/get_sync.md) (method): Get the equivalent sync `RunManager`. - [get_time](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/get_time.md) (method): Get the current server time as a high resolution timestamp! It's important to get this from the server to ensure a monotonic clock, otherwise there... - [get_time](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/get_time.md) (method) - [get_token_ids](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/get_token_ids.md) (method): Return the ordered IDs of the tokens in a text. - [get_tools](https://reference.langchain.com/python/langchain-core/tools/base/BaseToolkit/get_tools.md) (method): Get all tools in the toolkit. - [handle_invalid_for_json_schema](https://reference.langchain.com/python/langchain-core/utils/pydantic/_IgnoreUnserializable/handle_invalid_for_json_schema.md) (method) - [include_event](https://reference.langchain.com/python/langchain-core/runnables/utils/_RootEventFilter/include_event.md) (method): Determine whether to include an event. - [include_run](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/include_run.md) (method): Check if a `Run` should be included in the log. - [init_server_tool_calls](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/init_server_tool_calls.md) (method): Initialize server tool calls - [init_tool_calls](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessageChunk/init_tool_calls.md) (method): Initialize tool calls from tool call chunks. - [invoke](https://reference.langchain.com/python/langchain-core/retrievers/BaseRetriever/invoke.md) (method): Invoke the retriever to get relevant documents - [invoke](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/invoke.md) (method): Invoke the prompt. - [invoke](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/invoke.md) (method): First evaluates the condition, then delegate to `True` or `False` branch. - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/invoke.md) (method): Transform a single input into an output. - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/invoke.md) (method): Invoke this `Runnable` synchronously. - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/runnables/retry/RunnableRetry/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseGenerationOutputParser/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/invoke.md) (method) - [invoke](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/invoke.md) (method) - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/agents/AgentAction/is_lc_serializable.md) (method): `AgentAction` is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/agents/AgentFinish/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/prompt_values/PromptValue/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/is_lc_serializable.md) (method): `BaseMessage` is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/is_lc_serializable.md) (method): Is this class serializable? By design, even if a class inherits from `Serializable`, it is not serializable by default - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/is_lc_serializable.md) (method): Return `False` as this class is not serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/is_lc_serializable.md) (method): Return `False` as this class is not serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEachBase/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/outputs/generation/Generation/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/documents/base/Document/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/output_parsers/string/StrOutputParser/is_lc_serializable.md) (method): `StrOutputParser` is serializable. - [is_lc_serializable](https://reference.langchain.com/python/langchain-core/output_parsers/list/CommaSeparatedListOutputParser/is_lc_serializable.md) (method): Return `True` as this class is serializable. - [last_node](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/last_node.md) (method): Find the single node that is not a source of any edge - [lazy_load](https://reference.langchain.com/python/langchain-core/chat_loaders/BaseChatLoader/lazy_load.md) (method): Lazy load the chat sessions. - [lazy_load](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseLoader/lazy_load.md) (method): A lazy loader for `Document`. - [lazy_load](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith/LangSmithLoader/lazy_load.md) (method) - [lazy_parse](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseBlobParser/lazy_parse.md) (method): Lazy parsing interface - [lc_id](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/lc_id.md) (method): Return a unique identifier for this class for serialization purposes - [line](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/line.md) (method): Create a line on ASCII canvas. - [list_keys](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/list_keys.md) (method): List records in the database based on the provided filters. - [list_keys](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/list_keys.md) (method): List records in the database based on the provided filters. - [load](https://reference.langchain.com/python/langchain-core/chat_loaders/BaseChatLoader/load.md) (method): Eagerly load the chat sessions into memory. - [load](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseLoader/load.md) (method): Load data into `Document` objects. - [load](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/load.md) (method): Load a vector store from a file. - [load_and_split](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseLoader/load_and_split.md) (method): Load `Document` and split into chunks - [lookup](https://reference.langchain.com/python/langchain-core/caches/BaseCache/lookup.md) (method): Look up based on `prompt` and `llm_string` - [lookup](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache/lookup.md) (method): Look up based on `prompt` and `llm_string`. - [map](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/map.md) (method): Return a new `Runnable` that maps a list of inputs to a list of outputs - [map](https://reference.langchain.com/python/langchain-core/runnables/config/ContextThreadPoolExecutor/map.md) (method): Map a function to multiple iterables. - [max_marginal_relevance_search](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/max_marginal_relevance_search.md) (method): Return docs selected using the maximal marginal relevance - [max_marginal_relevance_search](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/max_marginal_relevance_search.md) (method) - [max_marginal_relevance_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/max_marginal_relevance_search_by_vector.md) (method): Return docs selected using the maximal marginal relevance - [max_marginal_relevance_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/max_marginal_relevance_search_by_vector.md) (method) - [mdelete](https://reference.langchain.com/python/langchain-core/stores/BaseStore/mdelete.md) (method): Delete the given keys and their associated values. - [mdelete](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/mdelete.md) (method) - [merge](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup/merge.md) (method): Merge the group callback manager with another callback manager - [merge](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup/merge.md) (method): Merge the group callback manager with another callback manager - [merge](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/merge.md) (method): Merge the callback manager with another callback manager - [mget](https://reference.langchain.com/python/langchain-core/stores/BaseStore/mget.md) (method): Get the values associated with the given keys. - [mget](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/mget.md) (method) - [mset](https://reference.langchain.com/python/langchain-core/stores/BaseStore/mset.md) (method): Set the values for the given keys. - [mset](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/mset.md) (method) - [next_id](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/next_id.md) (method): Return a new unique node identifier - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_agent_action.md) (method): Run on agent action. - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/on_agent_action.md) (method): Run on agent action. - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainRun/on_agent_action.md) (method): Run when agent action is received. - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainRun/on_agent_action.md) (method): Run when agent action is received. - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/on_agent_action.md) (method): Handle agent action by writing the action log. - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/base/ChainManagerMixin/on_agent_action.md) (method): Run on agent action. - [on_agent_action](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_agent_action.md) (method): Run on agent action. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_agent_finish.md) (method): Run on the agent end. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/on_agent_finish.md) (method): Run on the agent end. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainRun/on_agent_finish.md) (method): Run when agent finish is received. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainRun/on_agent_finish.md) (method): Run when agent finish is received. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/on_agent_finish.md) (method): Handle agent finish by writing the finish log. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/base/ChainManagerMixin/on_agent_finish.md) (method): Run on the agent end. - [on_agent_finish](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_agent_finish.md) (method): Run on the agent end. - [on_chain_end](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_chain_end.md) (method): End a trace for a chain run. - [on_chain_end](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_chain_end.md) (method): End a trace for a chain run. - [on_chain_end](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_chain_end.md) (method) - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_chain_end.md) (method): Run when a chain ends running. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/on_chain_end.md) (method): Print out that we finished a chain. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainRun/on_chain_end.md) (method): Run when chain ends running. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainRun/on_chain_end.md) (method): Run when a chain ends running. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup/on_chain_end.md) (method): Run when traced chain group ends. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup/on_chain_end.md) (method): Run when traced chain group ends. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/on_chain_end.md) (method): Print that we finished a chain. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/base/ChainManagerMixin/on_chain_end.md) (method): Run when chain ends running. - [on_chain_end](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_chain_end.md) (method): Run when a chain ends running. - [on_chain_error](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_chain_error.md) (method): Handle an error for a chain run. - [on_chain_error](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_chain_error.md) (method) - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_chain_error.md) (method): Run when chain errors. - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainRun/on_chain_error.md) (method): Run when chain errors. - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainRun/on_chain_error.md) (method): Run when chain errors. - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForChainGroup/on_chain_error.md) (method): Run when chain errors. - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForChainGroup/on_chain_error.md) (method): Run when chain errors. - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/base/ChainManagerMixin/on_chain_error.md) (method): Run when chain errors. - [on_chain_error](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_chain_error.md) (method): Run when chain errors. - [on_chain_start](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_chain_start.md) (method): Start a trace for a chain run. - [on_chain_start](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_chain_start.md) (method): Start a trace for a chain run. - [on_chain_start](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_chain_start.md) (method) - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_chain_start.md) (method): Run when a chain starts running. - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/on_chain_start.md) (method): Print out that we are entering a chain. - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/on_chain_start.md) (method): Run when chain starts running. - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/on_chain_start.md) (method): Async run when chain starts running. - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/on_chain_start.md) (method): Print that we are entering a chain. - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/base/CallbackManagerMixin/on_chain_start.md) (method): Run when a chain starts running. - [on_chain_start](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_chain_start.md) (method): Run when a chain starts running. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/on_chat_model_start.md) (method): Start a trace for an LLM run. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_chat_model_start.md) (method): Start a trace for a chat model run. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_chat_model_start.md) (method): Start a trace for a chat model run. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_chat_model_start.md) (method) - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_chat_model_start.md) (method): Run when LLM starts running. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/on_chat_model_start.md) (method): Run when chat model starts running. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/on_chat_model_start.md) (method): Async run when LLM starts running. - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/callbacks/base/CallbackManagerMixin/on_chat_model_start.md) (method): Run when a chat model starts running - [on_chat_model_start](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_chat_model_start.md) (method): Run when a chat model starts running - [on_custom_event](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_custom_event.md) (method): Generate a custom astream event. - [on_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/on_custom_event.md) (method): Dispatch an adhoc event to the handlers (async version) - [on_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/on_custom_event.md) (method): Dispatch an adhoc event to the handlers (async version) - [on_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/base/RunManagerMixin/on_custom_event.md) (method): Override to define a handler for a custom event. - [on_custom_event](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_custom_event.md) (method): Override to define a handler for custom events. - [on_llm_end](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_llm_end.md) (method): End a trace for a model run - [on_llm_end](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_llm_end.md) (method): End a trace for an LLM or chat model run. - [on_llm_end](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_llm_end.md) (method): End a trace for an LLM or chat model run. - [on_llm_end](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_llm_end.md) (method): Run when LLM ends running. - [on_llm_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForLLMRun/on_llm_end.md) (method): Run when LLM ends running. - [on_llm_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForLLMRun/on_llm_end.md) (method): Run when LLM ends running. - [on_llm_end](https://reference.langchain.com/python/langchain-core/callbacks/base/LLMManagerMixin/on_llm_end.md) (method): Run when LLM ends running. - [on_llm_end](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_llm_end.md) (method): Run when the model ends running. - [on_llm_end](https://reference.langchain.com/python/langchain-core/callbacks/usage/UsageMetadataCallbackHandler/on_llm_end.md) (method): Collect token usage. - [on_llm_error](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_llm_error.md) (method): Handle an error for an LLM run. - [on_llm_error](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_llm_error.md) (method) - [on_llm_error](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_llm_error.md) (method): Run when LLM errors. - [on_llm_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForLLMRun/on_llm_error.md) (method): Run when LLM errors. - [on_llm_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForLLMRun/on_llm_error.md) (method): Run when LLM errors. - [on_llm_error](https://reference.langchain.com/python/langchain-core/callbacks/base/LLMManagerMixin/on_llm_error.md) (method): Run when LLM errors. - [on_llm_error](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_llm_error.md) (method): Run when LLM errors. - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_llm_new_token.md) (method): Run on new output token - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_llm_new_token.md) (method): Run on new LLM token - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_llm_new_token.md) (method) - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_llm_new_token.md) (method): Run on new LLM token - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForLLMRun/on_llm_new_token.md) (method): Run when LLM generates a new token. - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForLLMRun/on_llm_new_token.md) (method): Run when LLM generates a new token. - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/callbacks/base/LLMManagerMixin/on_llm_new_token.md) (method): Run on new output token - [on_llm_new_token](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_llm_new_token.md) (method): Run on new output token - [on_llm_start](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_llm_start.md) (method): Start a trace for a (non-chat model) LLM run. - [on_llm_start](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_llm_start.md) (method): Start a trace for an LLM run. - [on_llm_start](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_llm_start.md) (method) - [on_llm_start](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_llm_start.md) (method): Run when LLM starts running. - [on_llm_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/on_llm_start.md) (method): Run when LLM starts running. - [on_llm_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/on_llm_start.md) (method): Run when LLM starts running. - [on_llm_start](https://reference.langchain.com/python/langchain-core/callbacks/base/CallbackManagerMixin/on_llm_start.md) (method): Run when LLM starts running - [on_llm_start](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_llm_start.md) (method): Run when the model starts running - [on_retriever_end](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_retriever_end.md) (method): Run when `Retriever` ends running. - [on_retriever_end](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_retriever_end.md) (method): Run when the `Retriever` ends running. - [on_retriever_end](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_retriever_end.md) (method) - [on_retriever_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForRetrieverRun/on_retriever_end.md) (method): Run when retriever ends running. - [on_retriever_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForRetrieverRun/on_retriever_end.md) (method): Run when the retriever ends running. - [on_retriever_end](https://reference.langchain.com/python/langchain-core/callbacks/base/RetrieverManagerMixin/on_retriever_end.md) (method): Run when `Retriever` ends running. - [on_retriever_end](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_retriever_end.md) (method): Run on the retriever end. - [on_retriever_error](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_retriever_error.md) (method): Run when `Retriever` errors. - [on_retriever_error](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_retriever_error.md) (method) - [on_retriever_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForRetrieverRun/on_retriever_error.md) (method): Run when retriever errors. - [on_retriever_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForRetrieverRun/on_retriever_error.md) (method): Run when retriever errors. - [on_retriever_error](https://reference.langchain.com/python/langchain-core/callbacks/base/RetrieverManagerMixin/on_retriever_error.md) (method): Run when `Retriever` errors. - [on_retriever_error](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_retriever_error.md) (method): Run on retriever error. - [on_retriever_start](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_retriever_start.md) (method): Run when `Retriever` starts running. - [on_retriever_start](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_retriever_start.md) (method): Run when the `Retriever` starts running. - [on_retriever_start](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_retriever_start.md) (method) - [on_retriever_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/on_retriever_start.md) (method): Run when the retriever starts running. - [on_retriever_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/on_retriever_start.md) (method): Run when the retriever starts running. - [on_retriever_start](https://reference.langchain.com/python/langchain-core/callbacks/base/CallbackManagerMixin/on_retriever_start.md) (method): Run when the `Retriever` starts running. - [on_retriever_start](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_retriever_start.md) (method): Run on the retriever start. - [on_retry](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_retry.md) (method): Run on retry. - [on_retry](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_retry.md) (method) - [on_retry](https://reference.langchain.com/python/langchain-core/callbacks/manager/RunManager/on_retry.md) (method): Run when a retry is received. - [on_retry](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncRunManager/on_retry.md) (method): Async run when a retry is received. - [on_retry](https://reference.langchain.com/python/langchain-core/callbacks/base/RunManagerMixin/on_retry.md) (method): Run on a retry event. - [on_retry](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_retry.md) (method): Run on a retry event. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_text.md) (method): Run on an arbitrary text. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/on_text.md) (method): Run when the agent ends. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/manager/RunManager/on_text.md) (method): Run when a text is received. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncRunManager/on_text.md) (method): Run when a text is received. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/on_text.md) (method): Handle text output. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/base/RunManagerMixin/on_text.md) (method): Run on an arbitrary text. - [on_text](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_text.md) (method): Run on an arbitrary text. - [on_tool_end](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_tool_end.md) (method): End a trace for a tool run. - [on_tool_end](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_tool_end.md) (method): End a trace for a tool run. - [on_tool_end](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_tool_end.md) (method) - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_tool_end.md) (method): Run when tool ends running. - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/stdout/StdOutCallbackHandler/on_tool_end.md) (method): If not the final action, print out observation. - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForToolRun/on_tool_end.md) (method): Run when the tool ends running. - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForToolRun/on_tool_end.md) (method): Async run when the tool ends running. - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/file/FileCallbackHandler/on_tool_end.md) (method): Handle tool end by writing the output with optional prefixes. - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/base/ToolManagerMixin/on_tool_end.md) (method): Run when the tool ends running. - [on_tool_end](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_tool_end.md) (method): Run when the tool ends running. - [on_tool_error](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_tool_error.md) (method): Run when tool errors. - [on_tool_error](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_tool_error.md) (method): Handle an error for a tool run. - [on_tool_error](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_tool_error.md) (method) - [on_tool_error](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_tool_error.md) (method): Run when tool errors. - [on_tool_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManagerForToolRun/on_tool_error.md) (method): Run when tool errors. - [on_tool_error](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManagerForToolRun/on_tool_error.md) (method): Run when tool errors. - [on_tool_error](https://reference.langchain.com/python/langchain-core/callbacks/base/ToolManagerMixin/on_tool_error.md) (method): Run when tool errors. - [on_tool_error](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_tool_error.md) (method): Run when tool errors. - [on_tool_start](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/on_tool_start.md) (method): Start a trace for a tool run. - [on_tool_start](https://reference.langchain.com/python/langchain-core/tracers/base/BaseTracer/on_tool_start.md) (method): Start a trace for a tool run. - [on_tool_start](https://reference.langchain.com/python/langchain-core/tracers/base/AsyncBaseTracer/on_tool_start.md) (method) - [on_tool_start](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout/StreamingStdOutCallbackHandler/on_tool_start.md) (method): Run when the tool starts running. - [on_tool_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/CallbackManager/on_tool_start.md) (method): Run when tool starts running. - [on_tool_start](https://reference.langchain.com/python/langchain-core/callbacks/manager/AsyncCallbackManager/on_tool_start.md) (method): Run when the tool starts running. - [on_tool_start](https://reference.langchain.com/python/langchain-core/callbacks/base/CallbackManagerMixin/on_tool_start.md) (method): Run when the tool starts running. - [on_tool_start](https://reference.langchain.com/python/langchain-core/callbacks/base/AsyncCallbackHandler/on_tool_start.md) (method): Run when the tool starts running. - [parse](https://reference.langchain.com/python/langchain-core/document_loaders/base/BaseBlobParser/parse.md) (method): Eagerly parse the blob into a `Document` or list of `Document` objects - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic/PydanticOutputParser/parse.md) (method): Parse the output of an LLM call to a Pydantic object. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/string/StrOutputParser/parse.md) (method): Returns the input text with no changes. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/json/JsonOutputParser/parse.md) (method): Parse the output of an LLM call to a JSON object. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputToolsParser/parse.md) (method): Parse the output of an LLM call to a list of tool calls. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/xml/_StreamingParser/parse.md) (method): Parse a chunk of text. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/xml/XMLOutputParser/parse.md) (method): Parse the output of an LLM call. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/parse.md) (method): Parse a single string model output into some structure. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/list/ListOutputParser/parse.md) (method): Parse the output of an LLM call. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/list/CommaSeparatedListOutputParser/parse.md) (method): Parse the output of an LLM call. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/list/NumberedListOutputParser/parse.md) (method): Parse the output of an LLM call. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/list/MarkdownListOutputParser/parse.md) (method): Parse the output of an LLM call. - [parse](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonOutputFunctionsParser/parse.md) (method): Parse the output of an LLM call to a JSON object. - [parse_iter](https://reference.langchain.com/python/langchain-core/output_parsers/list/ListOutputParser/parse_iter.md) (method): Parse the output of an LLM call. - [parse_iter](https://reference.langchain.com/python/langchain-core/output_parsers/list/NumberedListOutputParser/parse_iter.md) (method) - [parse_iter](https://reference.langchain.com/python/langchain-core/output_parsers/list/MarkdownListOutputParser/parse_iter.md) (method) - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic/PydanticOutputParser/parse_result.md) (method): Parse the result of an LLM call to a Pydantic object. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/json/JsonOutputParser/parse_result.md) (method): Parse the result of an LLM call to a JSON object. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputToolsParser/parse_result.md) (method): Parse the result of an LLM call to a list of tool calls. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/JsonOutputKeyToolsParser/parse_result.md) (method): Parse the result of an LLM call to a list of tool calls. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools/PydanticToolsParser/parse_result.md) (method): Parse the result of an LLM call to a list of Pydantic objects. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseLLMOutputParser/parse_result.md) (method): Parse a list of candidate model `Generation` objects into a specific format. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/parse_result.md) (method): Parse a list of candidate model `Generation` objects into a specific format - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/OutputFunctionsParser/parse_result.md) (method): Parse the result of an LLM call to a JSON object. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonOutputFunctionsParser/parse_result.md) (method): Parse the result of an LLM call to a JSON object. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/JsonKeyOutputFunctionsParser/parse_result.md) (method): Parse the result of an LLM call to a JSON object. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticOutputFunctionsParser/parse_result.md) (method): Parse the result of an LLM call to a JSON object. - [parse_result](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticAttrOutputFunctionsParser/parse_result.md) (method): Parse the result of an LLM call to a JSON object. - [parse_with_prompt](https://reference.langchain.com/python/langchain-core/output_parsers/base/BaseOutputParser/parse_with_prompt.md) (method): Parse the output of an LLM call with the input prompt for context - [partial](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/partial.md) (method): Return a partial of the prompt template. - [partial](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/partial.md) (method): Get a new `ChatPromptTemplate` with some input variables already filled in. - [pick](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/pick.md) (method): Pick keys from the output `dict` of this `Runnable` - [pipe](https://reference.langchain.com/python/langchain-core/prompts/structured/StructuredPrompt/pipe.md) (method): Pipe the structured prompt to a language model. - [pipe](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/pipe.md) (method): Pipe `Runnable` objects - [point](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/point.md) (method): Create a point on ASCII canvas. - [post_init](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/post_init.md) (method): Validate that the examples are formatted correctly. - [pre_init_validation](https://reference.langchain.com/python/langchain-core/prompts/prompt/PromptTemplate/pre_init_validation.md) (method): Check that template and input variables are consistent. - [prepare](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/prepare.md) (method): Prepare the `Runnable` for invocation. - [pretty_print](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/pretty_print.md) (method): Print a pretty representation of the message. - [pretty_print](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/pretty_print.md) (method): Print a human-readable representation. - [pretty_print](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate/pretty_print.md) (method): Print a pretty representation of the prompt. - [pretty_print](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/pretty_print.md) (method): Print a human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/messages/ai/AIMessage/pretty_repr.md) (method): Return a pretty representation of the message for display. - [pretty_repr](https://reference.langchain.com/python/langchain-core/messages/base/BaseMessage/pretty_repr.md) (method): Get a pretty representation of the message. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/message/BaseMessagePromptTemplate/pretty_repr.md) (method): Human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/string/StringPromptTemplate/pretty_repr.md) (method): Get a pretty representation of the prompt. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotChatMessagePromptTemplate/pretty_repr.md) (method): Return a pretty representation of the prompt template. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/dict/DictPromptTemplate/pretty_repr.md) (method): Human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/image/ImagePromptTemplate/pretty_repr.md) (method): Return a pretty representation of the prompt. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/chat/MessagesPlaceholder/pretty_repr.md) (method): Human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseStringMessagePromptTemplate/pretty_repr.md) (method): Human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/chat/_StringImageMessagePromptTemplate/pretty_repr.md) (method): Human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/chat/BaseChatPromptTemplate/pretty_repr.md) (method): Human-readable representation. - [pretty_repr](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/pretty_repr.md) (method): Human-readable representation. - [print_ascii](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/print_ascii.md) (method): Print the graph as an ASCII art string. - [reid](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/reid.md) (method): Return a new graph with all nodes re-identified - [remove_handler](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/remove_handler.md) (method): Remove a handler from the callback manager. - [remove_metadata](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/remove_metadata.md) (method): Remove metadata from the callback manager. - [remove_node](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/remove_node.md) (method): Remove a node from the graph and all edges connected to it. - [remove_tags](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/remove_tags.md) (method): Remove tags from the callback manager. - [run](https://reference.langchain.com/python/langchain-core/tools/base/BaseTool/run.md) (method): Run the tool. - [save](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/save.md) (method): Save the prompt template to a file. - [save](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/save.md) (method): Save the prompt to a file. - [save](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/save.md) (method): Save the prompt. - [save](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/save.md) (method): Save prompt to file. - [save](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/save.md) (method): Save the LLM. - [score](https://reference.langchain.com/python/langchain-core/cross_encoders/BaseCrossEncoder/score.md) (method): Score pairs' similarity. - [search](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/search.md) (method): Return docs most similar to query using a specified search type. - [select_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/SemanticSimilarityExampleSelector/select_examples.md) (method): Select examples based on semantic similarity. - [select_examples](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity/MaxMarginalRelevanceExampleSelector/select_examples.md) (method): Select examples based on Max Marginal Relevance. - [select_examples](https://reference.langchain.com/python/langchain-core/example_selectors/length_based/LengthBasedExampleSelector/select_examples.md) (method): Select which examples to use based on the input lengths. - [select_examples](https://reference.langchain.com/python/langchain-core/example_selectors/base/BaseExampleSelector/select_examples.md) (method): Select which examples to use based on the inputs. - [send](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/send.md) (method): Send a patch to the stream, return `False` if the stream is closed. - [send](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/_SendStream/send.md) (method): Schedule the item to be written to the queue using the original loop - [send_nowait](https://reference.langchain.com/python/langchain-core/tracers/memory_stream/_SendStream/send_nowait.md) (method): Schedule the item to be written to the queue using the original loop - [set_handler](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/set_handler.md) (method): Set handler as the only handler on the callback manager. - [set_handlers](https://reference.langchain.com/python/langchain-core/callbacks/base/BaseCallbackManager/set_handlers.md) (method): Set handlers as the only handlers on the callback manager. - [set_text](https://reference.langchain.com/python/langchain-core/outputs/chat_generation/ChatGeneration/set_text.md) (method): Set the text attribute to be the contents of the message. - [set_verbose](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/set_verbose.md) (method): If verbose is `None`, set it - [setpath](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/_EdgeViewer/setpath.md) (method) - [similarity_search](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/similarity_search.md) (method): Return docs most similar to query. - [similarity_search](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/similarity_search.md) (method) - [similarity_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/similarity_search_by_vector.md) (method): Return docs most similar to embedding vector. - [similarity_search_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/similarity_search_by_vector.md) (method) - [similarity_search_with_relevance_scores](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/similarity_search_with_relevance_scores.md) (method): Return docs and relevance scores in the range `[0, 1]` - [similarity_search_with_score](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStore/similarity_search_with_score.md) (method): Run similarity search with distance. - [similarity_search_with_score](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/similarity_search_with_score.md) (method) - [similarity_search_with_score_by_vector](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory/InMemoryVectorStore/similarity_search_with_score_by_vector.md) (method): Search for the most similar documents to the given embedding. - [stream](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/fallbacks/RunnableWithFallbacks/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/router/RouterRunnable/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/branch/RunnableBranch/stream.md) (method): First evaluates the condition, then delegate to `True` or `False` branch. - [stream](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/stream.md) (method): Default implementation of `stream`, which calls `invoke` - [stream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/language_models/llms/BaseLLM/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/stream.md) (method) - [stream](https://reference.langchain.com/python/langchain-core/language_models/fake/FakeStreamingListLLM/stream.md) (method) - [submit](https://reference.langchain.com/python/langchain-core/runnables/config/ContextThreadPoolExecutor/submit.md) (method): Submit a function to the executor. - [tap_output_aiter](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/tap_output_aiter.md) (method): Tap an output async iterator to stream its values to the log. - [tap_output_aiter](https://reference.langchain.com/python/langchain-core/tracers/_streaming/_StreamingCallbackHandler/tap_output_aiter.md) (method): Used for internal astream_log and astream events implementations. - [tap_output_aiter](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/tap_output_aiter.md) (method): Tap the output aiter - [tap_output_iter](https://reference.langchain.com/python/langchain-core/tracers/log_stream/LogStreamCallbackHandler/tap_output_iter.md) (method): Tap an output iterator to stream its values to the log. - [tap_output_iter](https://reference.langchain.com/python/langchain-core/tracers/_streaming/_StreamingCallbackHandler/tap_output_iter.md) (method): Used for internal astream_log and astream events implementations. - [tap_output_iter](https://reference.langchain.com/python/langchain-core/tracers/event_stream/_AstreamEventsCallbackHandler/tap_output_iter.md) (method): Tap the output iter. - [template_is_valid](https://reference.langchain.com/python/langchain-core/prompts/few_shot/FewShotPromptTemplate/template_is_valid.md) (method): Check that prefix, suffix, and input variables are consistent. - [template_is_valid](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates/FewShotPromptWithTemplates/template_is_valid.md) (method): Check that prefix, suffix, and input variables are consistent. - [text](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii/AsciiCanvas/text.md) (method): Print a text on ASCII canvas. - [to_json](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/to_json.md) (method): Serialize the object to JSON. - [to_json](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/to_json.md) (method): Convert the graph to a JSON-serializable format. - [to_json](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSerializable/to_json.md) (method): Serialize the `Runnable` to JSON. - [to_json_not_implemented](https://reference.langchain.com/python/langchain-core/load/serializable/Serializable/to_json_not_implemented.md) (method): Serialize a "not implemented" object. - [to_messages](https://reference.langchain.com/python/langchain-core/prompt_values/PromptValue/to_messages.md) (method): Return prompt as a list of messages. - [to_messages](https://reference.langchain.com/python/langchain-core/prompt_values/StringPromptValue/to_messages.md) (method): Return prompt as messages. - [to_messages](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/to_messages.md) (method): Return prompt as a list of messages. - [to_messages](https://reference.langchain.com/python/langchain-core/prompt_values/ImagePromptValue/to_messages.md) (method): Return prompt (image URL) as messages. - [to_string](https://reference.langchain.com/python/langchain-core/prompt_values/PromptValue/to_string.md) (method): Return prompt value as string. - [to_string](https://reference.langchain.com/python/langchain-core/prompt_values/StringPromptValue/to_string.md) (method): Return prompt as string. - [to_string](https://reference.langchain.com/python/langchain-core/prompt_values/ChatPromptValue/to_string.md) (method): Return prompt as string. - [to_string](https://reference.langchain.com/python/langchain-core/prompt_values/ImagePromptValue/to_string.md) (method): Return prompt (image URL) as string. - [transform](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePassthrough/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnableAssign/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/passthrough/RunnablePick/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/transform.md) (method): Transform inputs to outputs - [transform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableSequence/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableParallel/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableGenerator/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLambda/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBindingBase/transform.md) (method) - [transform](https://reference.langchain.com/python/langchain-core/output_parsers/transform/BaseTransformOutputParser/transform.md) (method): Transform the input into the output format. - [transform_documents](https://reference.langchain.com/python/langchain-core/documents/transformers/BaseDocumentTransformer/transform_documents.md) (method): Transform a list of documents. - [trim_first_node](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/trim_first_node.md) (method): Remove the first node if it exists and has a single outgoing edge - [trim_last_node](https://reference.langchain.com/python/langchain-core/runnables/graph/Graph/trim_last_node.md) (method): Remove the last node if it exists and has a single incoming edge - [update](https://reference.langchain.com/python/langchain-core/caches/BaseCache/update.md) (method): Update cache based on `prompt` and `llm_string` - [update](https://reference.langchain.com/python/langchain-core/caches/InMemoryCache/update.md) (method): Update cache based on `prompt` and `llm_string`. - [update](https://reference.langchain.com/python/langchain-core/indexing/base/RecordManager/update.md) (method): Upsert records into the database. - [update](https://reference.langchain.com/python/langchain-core/indexing/base/InMemoryRecordManager/update.md) (method): Upsert records into the database. - [update_styles](https://reference.langchain.com/python/langchain-core/runnables/graph_png/PngDrawer/update_styles.md) (method): Update the styles of the entrypoint and END nodes. - [upsert](https://reference.langchain.com/python/langchain-core/indexing/base/DocumentIndex/upsert.md) (method): Upsert documents into the index - [upsert](https://reference.langchain.com/python/langchain-core/indexing/in_memory/InMemoryDocumentIndex/upsert.md) (method): Upsert documents into the index. - [validate_input_variables](https://reference.langchain.com/python/langchain-core/prompts/chat/ChatPromptTemplate/validate_input_variables.md) (method): Validate input variables - [validate_input_variables](https://reference.langchain.com/python/langchain-core/utils/formatting/StrictFormatter/validate_input_variables.md) (method): Validate that input variables match the placeholders in a format string - [validate_schema](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions/PydanticOutputFunctionsParser/validate_schema.md) (method): Validate the Pydantic schema. - [validate_search_type](https://reference.langchain.com/python/langchain-core/vectorstores/base/VectorStoreRetriever/validate_search_type.md) (method): Validate search type. - [validate_variable_names](https://reference.langchain.com/python/langchain-core/prompts/base/BasePromptTemplate/validate_variable_names.md) (method): Validate variable names do not include restricted names. - [vformat](https://reference.langchain.com/python/langchain-core/utils/formatting/StrictFormatter/vformat.md) (method): Format a string using only keyword arguments - [visit_AsyncFunctionDef](https://reference.langchain.com/python/langchain-core/runnables/utils/IsFunctionArgDict/visit_AsyncFunctionDef.md) (method): Visit an async function definition. - [visit_AsyncFunctionDef](https://reference.langchain.com/python/langchain-core/runnables/utils/FunctionNonLocals/visit_AsyncFunctionDef.md) (method): Visit an async function definition. - [visit_Attribute](https://reference.langchain.com/python/langchain-core/runnables/utils/NonLocals/visit_Attribute.md) (method): Visit an attribute node. - [visit_Call](https://reference.langchain.com/python/langchain-core/runnables/utils/IsLocalDict/visit_Call.md) (method): Visit a call node. - [visit_comparison](https://reference.langchain.com/python/langchain-core/structured_query/Visitor/visit_comparison.md) (method): Translate a Comparison. - [visit_FunctionDef](https://reference.langchain.com/python/langchain-core/runnables/utils/IsFunctionArgDict/visit_FunctionDef.md) (method): Visit a function definition. - [visit_FunctionDef](https://reference.langchain.com/python/langchain-core/runnables/utils/FunctionNonLocals/visit_FunctionDef.md) (method): Visit a function definition. - [visit_Lambda](https://reference.langchain.com/python/langchain-core/runnables/utils/IsFunctionArgDict/visit_Lambda.md) (method): Visit a lambda function. - [visit_Lambda](https://reference.langchain.com/python/langchain-core/runnables/utils/FunctionNonLocals/visit_Lambda.md) (method): Visit a lambda function. - [visit_Lambda](https://reference.langchain.com/python/langchain-core/runnables/utils/GetLambdaSource/visit_Lambda.md) (method): Visit a lambda function. - [visit_Name](https://reference.langchain.com/python/langchain-core/runnables/utils/NonLocals/visit_Name.md) (method): Visit a name node. - [visit_operation](https://reference.langchain.com/python/langchain-core/structured_query/Visitor/visit_operation.md) (method): Translate an Operation. - [visit_structured_query](https://reference.langchain.com/python/langchain-core/structured_query/Visitor/visit_structured_query.md) (method): Translate a StructuredQuery. - [visit_Subscript](https://reference.langchain.com/python/langchain-core/runnables/utils/IsLocalDict/visit_Subscript.md) (method): Visit a subscript node. - [wait_for_futures](https://reference.langchain.com/python/langchain-core/tracers/evaluation/EvaluatorCallbackHandler/wait_for_futures.md) (method): Wait for all futures to complete. - [wait_for_futures](https://reference.langchain.com/python/langchain-core/tracers/langchain/LangChainTracer/wait_for_futures.md) (method): Wait for the given futures to complete. - [with_alisteners](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/with_alisteners.md) (method): Bind async lifecycle listeners to a `Runnable` - [with_alisteners](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEach/with_alisteners.md) (method): Bind async lifecycle listeners to a `Runnable` - [with_config](https://reference.langchain.com/python/langchain-core/runnables/configurable/DynamicRunnable/with_config.md) (method) - [with_config](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/with_config.md) (method): Bind config to a `Runnable`, returning a new `Runnable`. - [with_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEach/with_config.md) (method) - [with_config](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBinding/with_config.md) (method) - [with_fallbacks](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/with_fallbacks.md) (method): Add fallbacks to a `Runnable`, returning a new `Runnable` - [with_listeners](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/with_listeners.md) (method): Bind lifecycle listeners to a `Runnable`, returning a new `Runnable` - [with_listeners](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableEach/with_listeners.md) (method): Bind lifecycle listeners to a `Runnable`, returning a new `Runnable` - [with_listeners](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBinding/with_listeners.md) (method): Bind lifecycle listeners to a `Runnable`, returning a new `Runnable` - [with_retry](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/with_retry.md) (method): Create a new `Runnable` that retries the original `Runnable` on exceptions. - [with_retry](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBinding/with_retry.md) (method) - [with_structured_output](https://reference.langchain.com/python/langchain-core/language_models/base/BaseLanguageModel/with_structured_output.md) (method): Not implemented on this class. - [with_structured_output](https://reference.langchain.com/python/langchain-core/language_models/chat_models/BaseChatModel/with_structured_output.md) (method): Model wrapper that returns outputs formatted to match the given schema. - [with_types](https://reference.langchain.com/python/langchain-core/runnables/base/Runnable/with_types.md) (method): Bind input and output types to a `Runnable`, returning a new `Runnable`. - [with_types](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableBinding/with_types.md) (method) - [yield_blobs](https://reference.langchain.com/python/langchain-core/document_loaders/blob_loaders/BlobLoader/yield_blobs.md) (method): A lazy loader for raw data represented by LangChain's `Blob` object. - [yield_keys](https://reference.langchain.com/python/langchain-core/stores/BaseStore/yield_keys.md) (method): Get an iterator over keys that match the given prefix. - [yield_keys](https://reference.langchain.com/python/langchain-core/stores/InMemoryBaseStore/yield_keys.md) (method): Get an iterator over keys that match the given prefix. #### Modules - [agents](https://reference.langchain.com/python/langchain-core/agents.md) (module): Schema definitions for representing agent actions, observations, and return values - [ai](https://reference.langchain.com/python/langchain-core/messages/ai.md) (module): AI message. - [aiter](https://reference.langchain.com/python/langchain-core/utils/aiter.md) (module): Asynchronous iterator utilities - [anthropic](https://reference.langchain.com/python/langchain-core/messages/block_translators/anthropic.md) (module): Derivations of standard content blocks from Anthropic content. - [api](https://reference.langchain.com/python/langchain-core/indexing/api.md) (module): Module contains logic for indexing documents into vector stores. - [base](https://reference.langchain.com/python/langchain-core/messages/base.md) (module): Base message. - [base](https://reference.langchain.com/python/langchain-core/document_loaders/base.md) (module): Abstract interface for document loader implementations. - [base](https://reference.langchain.com/python/langchain-core/indexing/base.md) (module): Base classes for indexing. - [base](https://reference.langchain.com/python/langchain-core/prompts/base.md) (module): Base class for prompt templates. - [base](https://reference.langchain.com/python/langchain-core/runnables/base.md) (module): Base classes and utilities for `Runnable` objects. - [base](https://reference.langchain.com/python/langchain-core/vectorstores/base.md) (module): A vector store stores embedded data and performs vector search - [base](https://reference.langchain.com/python/langchain-core/tracers/base.md) (module): Base interfaces for tracing runs. - [base](https://reference.langchain.com/python/langchain-core/tools/base.md) (module): Base classes and utilities for LangChain tools. - [base](https://reference.langchain.com/python/langchain-core/documents/base.md) (module): Base classes for media and documents - [base](https://reference.langchain.com/python/langchain-core/callbacks/base.md) (module): Base callback handler for LangChain. - [base](https://reference.langchain.com/python/langchain-core/example_selectors/base.md) (module): Interface for selecting examples to include in prompts. - [base](https://reference.langchain.com/python/langchain-core/output_parsers/base.md) (module): Base parser for language model outputs. - [base](https://reference.langchain.com/python/langchain-core/language_models/base.md) (module): Base language models class. - [bedrock](https://reference.langchain.com/python/langchain-core/messages/block_translators/bedrock.md) (module): Derivations of standard content blocks from Bedrock content. - [bedrock_converse](https://reference.langchain.com/python/langchain-core/messages/block_translators/bedrock_converse.md) (module): Derivations of standard content blocks from Amazon (Bedrock Converse) content. - [beta_decorator](https://reference.langchain.com/python/langchain-core/_api/beta_decorator.md) (module): Helper functions for marking parts of the LangChain API as beta - [blob_loaders](https://reference.langchain.com/python/langchain-core/document_loaders/blob_loaders.md) (module): Schema for Blobs and Blob Loaders - [block_translators](https://reference.langchain.com/python/langchain-core/messages/block_translators.md) (module): Derivations of standard content blocks from provider content - [branch](https://reference.langchain.com/python/langchain-core/runnables/branch.md) (module): Runnable that selects which branch to run based on a condition. - [caches](https://reference.langchain.com/python/langchain-core/caches.md) (module): Optional caching layer for language models - [callbacks](https://reference.langchain.com/python/langchain-core/callbacks.md) (module): Callback handlers allow listening to events in LangChain. - [chat](https://reference.langchain.com/python/langchain-core/messages/chat.md) (module): Chat Message. - [chat](https://reference.langchain.com/python/langchain-core/prompts/chat.md) (module): Chat prompt template. - [chat_generation](https://reference.langchain.com/python/langchain-core/outputs/chat_generation.md) (module): Chat generation output classes. - [chat_history](https://reference.langchain.com/python/langchain-core/chat_history.md) (module): Chat message history stores a history of the message interactions in a chat. - [chat_loaders](https://reference.langchain.com/python/langchain-core/chat_loaders.md) (module): Chat loaders. - [chat_models](https://reference.langchain.com/python/langchain-core/language_models/chat_models.md) (module): Chat models for conversational AI. - [chat_result](https://reference.langchain.com/python/langchain-core/outputs/chat_result.md) (module): Chat result schema. - [chat_sessions](https://reference.langchain.com/python/langchain-core/chat_sessions.md) (module): **Chat Sessions** are a collection of messages and function calls. - [compressor](https://reference.langchain.com/python/langchain-core/documents/compressor.md) (module): Document compressor. - [config](https://reference.langchain.com/python/langchain-core/runnables/config.md) (module): Configuration utilities for `Runnable` objects. - [configurable](https://reference.langchain.com/python/langchain-core/runnables/configurable.md) (module): `Runnable` objects that can be dynamically configured. - [content](https://reference.langchain.com/python/langchain-core/messages/content.md) (module): Standard, multimodal content blocks for Large Language Model I/O - [context](https://reference.langchain.com/python/langchain-core/tracers/context.md) (module): Context management for tracers. - [convert](https://reference.langchain.com/python/langchain-core/tools/convert.md) (module): Convert functions and runnables to tools. - [core](https://reference.langchain.com/python/langchain-core/tracers/core.md) (module): Utilities for the root listener. - [cross_encoders](https://reference.langchain.com/python/langchain-core/cross_encoders.md) (module): Cross Encoder interface. - [deprecation](https://reference.langchain.com/python/langchain-core/_api/deprecation.md) (module): Helper functions for deprecating parts of the LangChain API - [dict](https://reference.langchain.com/python/langchain-core/prompts/dict.md) (module): Dictionary prompt template. - [document_loaders](https://reference.langchain.com/python/langchain-core/document_loaders.md) (module): Document loaders. - [documents](https://reference.langchain.com/python/langchain-core/documents.md) (module): Documents module for data retrieval and processing workflows - [dump](https://reference.langchain.com/python/langchain-core/load/dump.md) (module): Serialize LangChain objects to JSON - [embeddings](https://reference.langchain.com/python/langchain-core/embeddings.md) (module): Embeddings. - [embeddings](https://reference.langchain.com/python/langchain-core/embeddings/embeddings.md) (module): **Embeddings** interface. - [env](https://reference.langchain.com/python/langchain-core/env.md) (module): Utilities for getting information about the runtime environment. - [env](https://reference.langchain.com/python/langchain-core/utils/env.md) (module): Utilities for environment variables. - [evaluation](https://reference.langchain.com/python/langchain-core/tracers/evaluation.md) (module): A tracer that runs evaluators over completed runs. - [event_stream](https://reference.langchain.com/python/langchain-core/tracers/event_stream.md) (module): Internal tracer to power the event stream API. - [example_selectors](https://reference.langchain.com/python/langchain-core/example_selectors.md) (module): Example selectors - [exceptions](https://reference.langchain.com/python/langchain-core/exceptions.md) (module): Custom **exceptions** for LangChain. - [fake](https://reference.langchain.com/python/langchain-core/embeddings/fake.md) (module): Module contains a few fake embedding models for testing purposes. - [fake](https://reference.langchain.com/python/langchain-core/language_models/fake.md) (module): Fake LLMs for testing purposes. - [fake_chat_models](https://reference.langchain.com/python/langchain-core/language_models/fake_chat_models.md) (module): Fake chat models for testing purposes. - [fallbacks](https://reference.langchain.com/python/langchain-core/runnables/fallbacks.md) (module): `Runnable` that can fallback to other `Runnable` objects if it fails. - [few_shot](https://reference.langchain.com/python/langchain-core/prompts/few_shot.md) (module): Prompt template that contains few shot examples. - [few_shot_with_templates](https://reference.langchain.com/python/langchain-core/prompts/few_shot_with_templates.md) (module): Prompt template that contains few shot examples. - [file](https://reference.langchain.com/python/langchain-core/callbacks/file.md) (module): Callback handler that writes to a file. - [format_instructions](https://reference.langchain.com/python/langchain-core/output_parsers/format_instructions.md) (module): Format instructions. - [formatting](https://reference.langchain.com/python/langchain-core/utils/formatting.md) (module): Utilities for formatting strings. - [function](https://reference.langchain.com/python/langchain-core/messages/function.md) (module): Function Message. - [function_calling](https://reference.langchain.com/python/langchain-core/utils/function_calling.md) (module): Methods for creating function specs in the style of OpenAI Functions. - [generation](https://reference.langchain.com/python/langchain-core/outputs/generation.md) (module): Generation output schema. - [globals](https://reference.langchain.com/python/langchain-core/globals.md) (module): Global values and configuration that apply to all of LangChain. - [google_genai](https://reference.langchain.com/python/langchain-core/messages/block_translators/google_genai.md) (module): Derivations of standard content blocks from Google (GenAI) content. - [google_vertexai](https://reference.langchain.com/python/langchain-core/messages/block_translators/google_vertexai.md) (module): Derivations of standard content blocks from Google (VertexAI) content. - [graph](https://reference.langchain.com/python/langchain-core/runnables/graph.md) (module): Graph used in `Runnable` objects. - [graph_ascii](https://reference.langchain.com/python/langchain-core/runnables/graph_ascii.md) (module): Draws DAG in ASCII - [graph_mermaid](https://reference.langchain.com/python/langchain-core/runnables/graph_mermaid.md) (module): Mermaid graph drawing utilities. - [graph_png](https://reference.langchain.com/python/langchain-core/runnables/graph_png.md) (module): Helper class to draw a state graph into a PNG file. - [groq](https://reference.langchain.com/python/langchain-core/messages/block_translators/groq.md) (module): Derivations of standard content blocks from Groq content. - [history](https://reference.langchain.com/python/langchain-core/runnables/history.md) (module): `Runnable` that manages chat message history for another `Runnable`. - [html](https://reference.langchain.com/python/langchain-core/utils/html.md) (module): Utilities for working with HTML. - [human](https://reference.langchain.com/python/langchain-core/messages/human.md) (module): Human message. - [image](https://reference.langchain.com/python/langchain-core/prompts/image.md) (module): Image prompt template for a multimodal model. - [image](https://reference.langchain.com/python/langchain-core/utils/image.md) (module): Utilities for image processing. - [in_memory](https://reference.langchain.com/python/langchain-core/indexing/in_memory.md) (module): In memory document index. - [in_memory](https://reference.langchain.com/python/langchain-core/vectorstores/in_memory.md) (module): In-memory vector store. - [indexing](https://reference.langchain.com/python/langchain-core/indexing.md) (module): Code to help indexing data into a vectorstore - [input](https://reference.langchain.com/python/langchain-core/utils/input.md) (module): Handle chained inputs. - [interactive_env](https://reference.langchain.com/python/langchain-core/utils/interactive_env.md) (module): Utilities for working with interactive environments. - [internal](https://reference.langchain.com/python/langchain-core/_api/internal.md) (module) - [iter](https://reference.langchain.com/python/langchain-core/utils/iter.md) (module): Utilities for working with iterators. - [json](https://reference.langchain.com/python/langchain-core/utils/json.md) (module): Utilities for JSON. - [json](https://reference.langchain.com/python/langchain-core/output_parsers/json.md) (module): Parser for JSON output. - [json_schema](https://reference.langchain.com/python/langchain-core/utils/json_schema.md) (module): Utilities for JSON Schema. - [langchain](https://reference.langchain.com/python/langchain-core/tracers/langchain.md) (module): A tracer implementation that records to LangChain endpoint. - [langchain_core](https://reference.langchain.com/python/langchain-core/langchain_core.md) (module): `langchain-core` defines the base abstractions for the LangChain ecosystem - [langchain_v0](https://reference.langchain.com/python/langchain-core/messages/block_translators/langchain_v0.md) (module): Derivations of standard content blocks from LangChain v0 multimodal content. - [langsmith](https://reference.langchain.com/python/langchain-core/document_loaders/langsmith.md) (module): LangSmith document loader. - [language_models](https://reference.langchain.com/python/langchain-core/language_models.md) (module): Core language model abstractions - [length_based](https://reference.langchain.com/python/langchain-core/example_selectors/length_based.md) (module): Select examples based on length. - [list](https://reference.langchain.com/python/langchain-core/output_parsers/list.md) (module): Parsers for list output. - [llm_result](https://reference.langchain.com/python/langchain-core/outputs/llm_result.md) (module): `LLMResult` class. - [llms](https://reference.langchain.com/python/langchain-core/language_models/llms.md) (module): Base interface for traditional large language models (LLMs) to expose - [load](https://reference.langchain.com/python/langchain-core/load.md) (module): **Load** module helps with serialization and deserialization. - [load](https://reference.langchain.com/python/langchain-core/load/load.md) (module): Load LangChain objects from JSON strings or objects - [loading](https://reference.langchain.com/python/langchain-core/prompts/loading.md) (module): Load prompts. - [log_stream](https://reference.langchain.com/python/langchain-core/tracers/log_stream.md) (module): Tracer that streams run logs to a stream. - [manager](https://reference.langchain.com/python/langchain-core/callbacks/manager.md) (module): Run managers. - [mapping](https://reference.langchain.com/python/langchain-core/load/mapping.md) (module): Serialization mapping - [memory_stream](https://reference.langchain.com/python/langchain-core/tracers/memory_stream.md) (module): Module implements a memory stream for communication between two co-routines - [message](https://reference.langchain.com/python/langchain-core/prompts/message.md) (module): Message prompt templates. - [messages](https://reference.langchain.com/python/langchain-core/messages.md) (module): **Messages** are objects used in prompts and chat conversations. - [model_profile](https://reference.langchain.com/python/langchain-core/language_models/model_profile.md) (module): Model profile types and utilities. - [modifier](https://reference.langchain.com/python/langchain-core/messages/modifier.md) (module): Message responsible for deleting other messages. - [mustache](https://reference.langchain.com/python/langchain-core/utils/mustache.md) (module): Adapted from https://github.com/noahmorrison/chevron - [openai](https://reference.langchain.com/python/langchain-core/messages/block_translators/openai.md) (module): Derivations of standard content blocks from OpenAI content. - [openai_functions](https://reference.langchain.com/python/langchain-core/output_parsers/openai_functions.md) (module): Parsers for OpenAI functions output. - [openai_tools](https://reference.langchain.com/python/langchain-core/output_parsers/openai_tools.md) (module): Parse tools for OpenAI tools output. - [output_parsers](https://reference.langchain.com/python/langchain-core/output_parsers.md) (module): `OutputParser` classes parse the output of an LLM call into structured data - [outputs](https://reference.langchain.com/python/langchain-core/outputs.md) (module): Output classes - [passthrough](https://reference.langchain.com/python/langchain-core/runnables/passthrough.md) (module): Implementation of the `RunnablePassthrough`. - [path](https://reference.langchain.com/python/langchain-core/_api/path.md) (module) - [prompt](https://reference.langchain.com/python/langchain-core/prompts/prompt.md) (module): Prompt schema definition. - [prompt_values](https://reference.langchain.com/python/langchain-core/prompt_values.md) (module): **Prompt values** for language model prompts - [prompts](https://reference.langchain.com/python/langchain-core/prompts.md) (module): A prompt is the input to the model - [pydantic](https://reference.langchain.com/python/langchain-core/utils/pydantic.md) (module): Utilities for pydantic. - [pydantic](https://reference.langchain.com/python/langchain-core/output_parsers/pydantic.md) (module): Output parsers using Pydantic. - [rate_limiters](https://reference.langchain.com/python/langchain-core/rate_limiters.md) (module): Interface for a rate limiter and an in-memory rate limiter. - [render](https://reference.langchain.com/python/langchain-core/tools/render.md) (module): Utilities to render tools. - [retriever](https://reference.langchain.com/python/langchain-core/tools/retriever.md) (module): Retriever tool. - [retrievers](https://reference.langchain.com/python/langchain-core/retrievers.md) (module): **Retriever** class returns `Document` objects given a text **query** - [retry](https://reference.langchain.com/python/langchain-core/runnables/retry.md) (module): `Runnable` that retries a `Runnable` if it fails. - [root_listeners](https://reference.langchain.com/python/langchain-core/tracers/root_listeners.md) (module): Tracers that call listeners. - [router](https://reference.langchain.com/python/langchain-core/runnables/router.md) (module): `Runnable` that routes to a set of `Runnable` objects. - [run_collector](https://reference.langchain.com/python/langchain-core/tracers/run_collector.md) (module): A tracer that collects all nested runs in a list. - [run_info](https://reference.langchain.com/python/langchain-core/outputs/run_info.md) (module): `RunInfo` class. - [runnables](https://reference.langchain.com/python/langchain-core/runnables.md) (module): LangChain **Runnable** and the **LangChain Expression Language (LCEL)** - [schema](https://reference.langchain.com/python/langchain-core/runnables/schema.md) (module): Module contains typedefs that are used with `Runnable` objects. - [schemas](https://reference.langchain.com/python/langchain-core/tracers/schemas.md) (module): Schemas for tracers. - [semantic_similarity](https://reference.langchain.com/python/langchain-core/example_selectors/semantic_similarity.md) (module): Example selector that selects examples based on SemanticSimilarity. - [serializable](https://reference.langchain.com/python/langchain-core/load/serializable.md) (module): Serializable base class. - [simple](https://reference.langchain.com/python/langchain-core/tools/simple.md) (module): Tool that takes in function or coroutine directly. - [stdout](https://reference.langchain.com/python/langchain-core/tracers/stdout.md) (module): Tracers that print to the console. - [stdout](https://reference.langchain.com/python/langchain-core/callbacks/stdout.md) (module): Callback handler that prints to std out. - [stores](https://reference.langchain.com/python/langchain-core/stores.md) (module): **Store** implements the key-value stores and storage helpers - [streaming_stdout](https://reference.langchain.com/python/langchain-core/callbacks/streaming_stdout.md) (module): Callback Handler streams to stdout on new llm token. - [string](https://reference.langchain.com/python/langchain-core/prompts/string.md) (module): `BasePrompt` schema definition. - [string](https://reference.langchain.com/python/langchain-core/output_parsers/string.md) (module): String output parser. - [strings](https://reference.langchain.com/python/langchain-core/utils/strings.md) (module): String utilities. - [structured](https://reference.langchain.com/python/langchain-core/prompts/structured.md) (module): Structured prompt template for a language model. - [structured](https://reference.langchain.com/python/langchain-core/tools/structured.md) (module): Structured tool. - [structured_query](https://reference.langchain.com/python/langchain-core/structured_query.md) (module): Internal representation of a structured query language. - [sys_info](https://reference.langchain.com/python/langchain-core/sys_info.md) (module): Print information about the system and langchain packages for debugging purposes. - [system](https://reference.langchain.com/python/langchain-core/messages/system.md) (module): System message. - [tool](https://reference.langchain.com/python/langchain-core/messages/tool.md) (module): Messages for tools. - [tools](https://reference.langchain.com/python/langchain-core/tools.md) (module): Tools are classes that an Agent uses to interact with the world - [tracers](https://reference.langchain.com/python/langchain-core/tracers.md) (module): Tracers are classes for tracing runs. - [transform](https://reference.langchain.com/python/langchain-core/output_parsers/transform.md) (module): Base classes for output parsers that can handle streaming input. - [transformers](https://reference.langchain.com/python/langchain-core/documents/transformers.md) (module): Document transformers. - [usage](https://reference.langchain.com/python/langchain-core/utils/usage.md) (module): Usage utilities. - [usage](https://reference.langchain.com/python/langchain-core/callbacks/usage.md) (module): Callback Handler that tracks `AIMessage.usage_metadata`. - [utils](https://reference.langchain.com/python/langchain-core/messages/utils.md) (module): Module contains utility functions for working with messages - [utils](https://reference.langchain.com/python/langchain-core/runnables/utils.md) (module): Utility code for `Runnable` objects. - [utils](https://reference.langchain.com/python/langchain-core/vectorstores/utils.md) (module): Internal utilities for the in memory implementation of `VectorStore` - [utils](https://reference.langchain.com/python/langchain-core/utils.md) (module): Utility functions for LangChain - [utils](https://reference.langchain.com/python/langchain-core/utils/utils.md) (module): Generic utility functions. - [uuid](https://reference.langchain.com/python/langchain-core/utils/uuid.md) (module): UUID utility functions - [vectorstores](https://reference.langchain.com/python/langchain-core/vectorstores.md) (module): Vector stores. - [version](https://reference.langchain.com/python/langchain-core/version.md) (module): langchain-core version information and utilities. - [xml](https://reference.langchain.com/python/langchain-core/output_parsers/xml.md) (module): Output parser for XML format. #### TypeAliass - [Annotation](https://reference.langchain.com/python/langchain-core/messages/content/Annotation.md) (typeAlias): A union of all defined `Annotation` types. - [AnyConfigurableField](https://reference.langchain.com/python/langchain-core/runnables/utils/AnyConfigurableField.md) (typeAlias) - [ArgsSchema](https://reference.langchain.com/python/langchain-core/tools/base/ArgsSchema.md) (typeAlias) - [AsyncListener](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/AsyncListener.md) (typeAlias) - [Callbacks](https://reference.langchain.com/python/langchain-core/callbacks/base/Callbacks.md) (typeAlias) - [ContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/ContentBlock.md) (typeAlias): A union of all defined `ContentBlock` types and aliases. - [DataContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/DataContentBlock.md) (typeAlias): A union of all defined multimodal data `ContentBlock` types. - [LanguageModelInput](https://reference.langchain.com/python/langchain-core/language_models/base/LanguageModelInput.md) (typeAlias): Input to a language model. - [LanguageModelOutput](https://reference.langchain.com/python/langchain-core/language_models/base/LanguageModelOutput.md) (typeAlias): Output from a language model. - [Listener](https://reference.langchain.com/python/langchain-core/tracers/root_listeners/Listener.md) (typeAlias) - [Matrix](https://reference.langchain.com/python/langchain-core/vectorstores/utils/Matrix.md) (typeAlias) - [MessageLike](https://reference.langchain.com/python/langchain-core/prompts/chat/MessageLike.md) (typeAlias) - [MessageLikeRepresentation](https://reference.langchain.com/python/langchain-core/messages/utils/MessageLikeRepresentation.md) (typeAlias): A type representing the various ways a message can be represented. - [MessageLikeRepresentation](https://reference.langchain.com/python/langchain-core/prompts/chat/MessageLikeRepresentation.md) (typeAlias) - [MessagesOrDictWithMessages](https://reference.langchain.com/python/langchain-core/runnables/history/MessagesOrDictWithMessages.md) (typeAlias) - [PathLike](https://reference.langchain.com/python/langchain-core/documents/base/PathLike.md) (typeAlias) - [PydanticBaseModel](https://reference.langchain.com/python/langchain-core/output_parsers/json/PydanticBaseModel.md) (typeAlias) - [RunnableLike](https://reference.langchain.com/python/langchain-core/runnables/base/RunnableLike.md) (typeAlias) - [Scopes](https://reference.langchain.com/python/langchain-core/utils/mustache/Scopes.md) (typeAlias) - [StreamEvent](https://reference.langchain.com/python/langchain-core/runnables/schema/StreamEvent.md) (typeAlias) - [ToolContentBlock](https://reference.langchain.com/python/langchain-core/messages/content/ToolContentBlock.md) (typeAlias) ### langchain_mcp_adapters #### Attributes - [args](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/args.md) (attribute): Command line arguments to pass to the executable. - [args](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/_MCPToolCallRequestOverrides/args.md) (attribute) - [args](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest/args.md) (attribute) - [ASYNC_CONTEXT_MANAGER_ERROR](https://reference.langchain.com/python/langchain-mcp-adapters/client/ASYNC_CONTEXT_MANAGER_ERROR.md) (attribute) - [auth](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/auth.md) (attribute): Optional authentication for the HTTP client. - [auth](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/auth.md) (attribute): Optional authentication for the HTTP client. - [callbacks](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/callbacks.md) (attribute) - [command](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/command.md) (attribute): The executable to run to start the server. - [connections](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/connections.md) (attribute) - [cwd](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/cwd.md) (attribute): The working directory to use when spawning the process. - [DEFAULT_ENCODING](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/DEFAULT_ENCODING.md) (attribute) - [DEFAULT_ENCODING_ERROR_HANDLER](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/DEFAULT_ENCODING_ERROR_HANDLER.md) (attribute) - [DEFAULT_HTTP_TIMEOUT](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/DEFAULT_HTTP_TIMEOUT.md) (attribute) - [DEFAULT_SSE_READ_TIMEOUT](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/DEFAULT_SSE_READ_TIMEOUT.md) (attribute) - [DEFAULT_STREAMABLE_HTTP_SSE_READ_TIMEOUT](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/DEFAULT_STREAMABLE_HTTP_SSE_READ_TIMEOUT.md) (attribute) - [DEFAULT_STREAMABLE_HTTP_TIMEOUT](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/DEFAULT_STREAMABLE_HTTP_TIMEOUT.md) (attribute) - [elicitation_callback](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/_MCPCallbacks/elicitation_callback.md) (attribute) - [ElicitationFnT](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/ElicitationFnT.md) (attribute) - [ElicitRequestParams](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/ElicitRequestParams.md) (attribute) - [encoding](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/encoding.md) (attribute): The text encoding used when sending/receiving messages to the server - [encoding_error_handler](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/encoding_error_handler.md) (attribute): The text encoding error handler - [EncodingErrorHandler](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/EncodingErrorHandler.md) (attribute) - [env](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/env.md) (attribute): The environment to use when spawning the process - [headers](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/headers.md) (attribute): HTTP headers to send to the SSE endpoint. - [headers](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/headers.md) (attribute): HTTP headers to send to the endpoint. - [headers](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/_MCPToolCallRequestOverrides/headers.md) (attribute) - [headers](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest/headers.md) (attribute) - [httpx_client_factory](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/httpx_client_factory.md) (attribute): Custom factory for httpx.AsyncClient (optional). - [httpx_client_factory](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/httpx_client_factory.md) (attribute): Custom factory for httpx.AsyncClient (optional). - [LANGGRAPH_PRESENT](https://reference.langchain.com/python/langchain-mcp-adapters/tools/LANGGRAPH_PRESENT.md) (attribute) - [LANGGRAPH_PRESENT](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/LANGGRAPH_PRESENT.md) (attribute) - [logger](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/logger.md) (attribute) - [logging_callback](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/_MCPCallbacks/logging_callback.md) (attribute) - [LoggingFnT](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/LoggingFnT.md) (attribute) - [LoggingMessageNotificationParams](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/LoggingMessageNotificationParams.md) (attribute) - [MAX_ITERATIONS](https://reference.langchain.com/python/langchain-mcp-adapters/tools/MAX_ITERATIONS.md) (attribute) - [name](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/_MCPToolCallRequestOverrides/name.md) (attribute) - [name](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest/name.md) (attribute) - [on_elicitation](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/Callbacks/on_elicitation.md) (attribute) - [on_logging_message](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/Callbacks/on_logging_message.md) (attribute) - [on_progress](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/Callbacks/on_progress.md) (attribute) - [progress_callback](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/_MCPCallbacks/progress_callback.md) (attribute) - [ProgressFnT](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/ProgressFnT.md) (attribute) - [runtime](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest/runtime.md) (attribute) - [server_name](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest/server_name.md) (attribute) - [server_name](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/CallbackContext/server_name.md) (attribute) - [session_kwargs](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/session_kwargs.md) (attribute): Additional keyword arguments to pass to the ClientSession. - [session_kwargs](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/session_kwargs.md) (attribute): Additional keyword arguments to pass to the ClientSession. - [session_kwargs](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/session_kwargs.md) (attribute): Additional keyword arguments to pass to the ClientSession. - [session_kwargs](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/WebsocketConnection/session_kwargs.md) (attribute): Additional keyword arguments to pass to the ClientSession - [sse_read_timeout](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/sse_read_timeout.md) (attribute): SSE read timeout - [sse_read_timeout](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/sse_read_timeout.md) (attribute): How long (in seconds) the client will wait for a new event before disconnecting - [structured_content](https://reference.langchain.com/python/langchain-mcp-adapters/tools/MCPToolArtifact/structured_content.md) (attribute) - [terminate_on_close](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/terminate_on_close.md) (attribute): Whether to terminate the session on close. - [timeout](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/timeout.md) (attribute): HTTP timeout - [timeout](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/timeout.md) (attribute): HTTP timeout. - [tool_interceptors](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/tool_interceptors.md) (attribute) - [tool_name](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/CallbackContext/tool_name.md) (attribute) - [tool_name_prefix](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/tool_name_prefix.md) (attribute) - [transport](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection/transport.md) (attribute) - [transport](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/transport.md) (attribute) - [transport](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/transport.md) (attribute) - [transport](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/WebsocketConnection/transport.md) (attribute) - [url](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection/url.md) (attribute): The URL of the SSE endpoint to connect to. - [url](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection/url.md) (attribute): The URL of the endpoint to connect to. - [url](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/WebsocketConnection/url.md) (attribute): The URL of the Websocket endpoint to connect to. #### Classs - [CallbackContext](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/CallbackContext.md) (class): LangChain MCP client callback context. - [Callbacks](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/Callbacks.md) (class): Callbacks for the LangChain MCP client. - [ElicitationCallback](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/ElicitationCallback.md) (class): Light wrapper around the mcp.client.session.ElicitationFnT - [LoggingMessageCallback](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/LoggingMessageCallback.md) (class): Light wrapper around the mcp.client.session.LoggingFnT - [McpHttpClientFactory](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/McpHttpClientFactory.md) (class): Protocol for creating httpx.AsyncClient instances for MCP connections. - [MCPToolArtifact](https://reference.langchain.com/python/langchain-mcp-adapters/tools/MCPToolArtifact.md) (class): Artifact returned from MCP tool calls - [MCPToolCallRequest](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest.md) (class): Tool execution request passed to MCP tool call interceptors - [MultiServerMCPClient](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient.md) (class): Client for connecting to multiple MCP servers - [ProgressCallback](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/ProgressCallback.md) (class): Light wrapper around the mcp.shared.session.ProgressFnT - [SSEConnection](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection.md) (class): Configuration for Server-Sent Events (SSE) transport connections to MCP. - [StdioConnection](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StdioConnection.md) (class): Configuration for stdio transport connections to MCP servers. - [StreamableHttpConnection](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/StreamableHttpConnection.md) (class): Connection configuration for Streamable HTTP transport. - [ToolCallInterceptor](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/ToolCallInterceptor.md) (class): Protocol for tool call interceptors using handler callback pattern - [WebsocketConnection](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/WebsocketConnection.md) (class): Configuration for WebSocket transport connections to MCP servers. #### Functions - [convert_mcp_prompt_message_to_langchain_message](https://reference.langchain.com/python/langchain-mcp-adapters/prompts/convert_mcp_prompt_message_to_langchain_message.md) (function): Convert an MCP prompt message to a LangChain message. - [convert_mcp_resource_to_langchain_blob](https://reference.langchain.com/python/langchain-mcp-adapters/resources/convert_mcp_resource_to_langchain_blob.md) (function): Convert an MCP resource content to a LangChain Blob. - [convert_mcp_tool_to_langchain_tool](https://reference.langchain.com/python/langchain-mcp-adapters/tools/convert_mcp_tool_to_langchain_tool.md) (function): Convert an MCP tool to a LangChain tool - [create_session](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/create_session.md) (function): Create a new session to an MCP server. - [get_mcp_resource](https://reference.langchain.com/python/langchain-mcp-adapters/resources/get_mcp_resource.md) (function): Fetch a single MCP resource and convert it to LangChain [Blob objects][langchain_core.documents.base.Blob]. - [load_mcp_prompt](https://reference.langchain.com/python/langchain-mcp-adapters/prompts/load_mcp_prompt.md) (function): Load MCP prompt and convert to LangChain [messages](https://docs.langchain.com/oss/python/langchain/messages). - [load_mcp_resources](https://reference.langchain.com/python/langchain-mcp-adapters/resources/load_mcp_resources.md) (function): Load MCP resources and convert them to LangChain [Blob objects][langchain_core.documents.base.Blob]. - [load_mcp_tools](https://reference.langchain.com/python/langchain-mcp-adapters/tools/load_mcp_tools.md) (function): Load all available MCP tools and convert them to LangChain [tools](https://docs.langchain.com/oss/python/langchain/tools). - [to_fastmcp](https://reference.langchain.com/python/langchain-mcp-adapters/tools/to_fastmcp.md) (function): Convert LangChain tool to FastMCP tool. #### Methods - [get_prompt](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/get_prompt.md) (method): Get a prompt from a given MCP server. - [get_resources](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/get_resources.md) (method): Get resources from MCP server(s). - [get_tools](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/get_tools.md) (method): Get a list of all tools from all connected servers. - [override](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallRequest/override.md) (method): Replace the request with a new request with the given overrides - [session](https://reference.langchain.com/python/langchain-mcp-adapters/client/MultiServerMCPClient/session.md) (method): Connect to an MCP server and initialize a session. - [to_mcp_format](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks/Callbacks/to_mcp_format.md) (method): Convert the LangChain MCP client callbacks to MCP SDK callbacks #### Modules - [callbacks](https://reference.langchain.com/python/langchain-mcp-adapters/callbacks.md) (module): Types for callbacks. - [client](https://reference.langchain.com/python/langchain-mcp-adapters/client.md) (module): Client for connecting to multiple MCP servers and loading LC tools/resources - [interceptors](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors.md) (module): Interceptor interfaces and types for MCP client tool call lifecycle management - [langchain_mcp_adapters](https://reference.langchain.com/python/langchain-mcp-adapters/langchain_mcp_adapters.md) (module): LangChain MCP Adapters - Connect MCP servers with LangChain applications - [prompts](https://reference.langchain.com/python/langchain-mcp-adapters/prompts.md) (module): Prompts adapter for converting MCP prompts to LangChain [messages](https://docs.langchain.com/oss/python/langchain/messages) - [resources](https://reference.langchain.com/python/langchain-mcp-adapters/resources.md) (module): Resources adapter for converting MCP resources to LangChain [Blob objects][langchain_core.documents.base.Blob] - [sessions](https://reference.langchain.com/python/langchain-mcp-adapters/sessions.md) (module): Session management for different MCP transport types - [tools](https://reference.langchain.com/python/langchain-mcp-adapters/tools.md) (module): Tools adapter for converting MCP tools to LangChain tools #### TypeAliass - [Connection](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/Connection.md) (typeAlias) - [ConvertedToolResult](https://reference.langchain.com/python/langchain-mcp-adapters/tools/ConvertedToolResult.md) (typeAlias) - [MCPToolCallResult](https://reference.langchain.com/python/langchain-mcp-adapters/interceptors/MCPToolCallResult.md) (typeAlias) - [ToolMessageContentBlock](https://reference.langchain.com/python/langchain-mcp-adapters/tools/ToolMessageContentBlock.md) (typeAlias) ### langchain_tests #### Attributes - [chat_model_class](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/chat_model_class.md) (attribute): The chat model class to test, e.g., `ChatParrotLink`. - [chat_model_params](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/chat_model_params.md) (attribute): Initialization parameters for the chat model. - [deepagents](https://reference.langchain.com/python/langchain-tests/integration_tests/sandboxes/deepagents.md) (attribute) - [embedding_model_params](https://reference.langchain.com/python/langchain-tests/unit_tests/embeddings/EmbeddingsTests/embedding_model_params.md) (attribute): Embeddings model parameters. - [EMBEDDING_SIZE](https://reference.langchain.com/python/langchain-tests/integration_tests/vectorstores/EMBEDDING_SIZE.md) (attribute) - [embeddings_class](https://reference.langchain.com/python/langchain-tests/unit_tests/embeddings/EmbeddingsTests/embeddings_class.md) (attribute): Embeddings class. - [enable_vcr_tests](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/enable_vcr_tests.md) (attribute): Whether to enable VCR tests for the chat model - [has_async](https://reference.langchain.com/python/langchain-tests/integration_tests/vectorstores/VectorStoreIntegrationTests/has_async.md) (attribute): Configurable property to enable or disable async tests. - [has_async](https://reference.langchain.com/python/langchain-tests/integration_tests/sandboxes/SandboxIntegrationTests/has_async.md) (attribute): Whether the sandbox supports async methods. - [has_get_by_ids](https://reference.langchain.com/python/langchain-tests/integration_tests/vectorstores/VectorStoreIntegrationTests/has_get_by_ids.md) (attribute): Whether the `VectorStore` supports `get_by_ids`. - [has_structured_output](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/has_structured_output.md) (attribute): Whether the chat model supports structured output. - [has_sync](https://reference.langchain.com/python/langchain-tests/integration_tests/vectorstores/VectorStoreIntegrationTests/has_sync.md) (attribute): Configurable property to enable or disable sync tests. - [has_sync](https://reference.langchain.com/python/langchain-tests/integration_tests/sandboxes/SandboxIntegrationTests/has_sync.md) (attribute): Whether the sandbox supports sync methods. - [has_tool_calling](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/has_tool_calling.md) (attribute): Whether the model supports tool calling. - [has_tool_choice](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/has_tool_choice.md) (attribute): Whether the model supports tool calling. - [init_from_env_params](https://reference.langchain.com/python/langchain-tests/unit_tests/tools/ToolsUnitTests/init_from_env_params.md) (attribute): Init from env params - [init_from_env_params](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelUnitTests/init_from_env_params.md) (attribute): Init from env params - [init_from_env_params](https://reference.langchain.com/python/langchain-tests/unit_tests/embeddings/EmbeddingsUnitTests/init_from_env_params.md) (attribute): Init from env params - [input](https://reference.langchain.com/python/langchain-tests/integration_tests/chat_models/_MagicFunctionSchema/input.md) (attribute) - [model_override_value](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/model_override_value.md) (attribute): Alternative model name to use when testing model override - [modules](https://reference.langchain.com/python/langchain-tests/unit_tests/modules.md) (attribute) - [modules](https://reference.langchain.com/python/langchain-tests/integration_tests/modules.md) (attribute) - [num_results_arg_name](https://reference.langchain.com/python/langchain-tests/integration_tests/retrievers/RetrieversIntegrationTests/num_results_arg_name.md) (attribute): Returns the name of the parameter for the number of results returned - [options](https://reference.langchain.com/python/langchain-tests/integration_tests/chat_models/_TestCallbackHandler/options.md) (attribute) - [PYDANTIC_MAJOR_VERSION](https://reference.langchain.com/python/langchain-tests/utils/pydantic/PYDANTIC_MAJOR_VERSION.md) (attribute) - [retriever_constructor](https://reference.langchain.com/python/langchain-tests/integration_tests/retrievers/RetrieversIntegrationTests/retriever_constructor.md) (attribute): A `BaseRetriever` subclass to be tested. - [retriever_constructor_params](https://reference.langchain.com/python/langchain-tests/integration_tests/retrievers/RetrieversIntegrationTests/retriever_constructor_params.md) (attribute): Returns a dictionary of parameters to pass to the retriever constructor. - [retriever_query_example](https://reference.langchain.com/python/langchain-tests/integration_tests/retrievers/RetrieversIntegrationTests/retriever_query_example.md) (attribute): Returns a str representing the `query` of an example retriever call. - [returns_usage_metadata](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/returns_usage_metadata.md) (attribute): Returns usage metadata - [standard_chat_model_params](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/standard_chat_model_params.md) (attribute): Standard chat model parameters. - [standard_chat_model_params](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelUnitTests/standard_chat_model_params.md) (attribute): Standard chat model parameters. - [standard_chat_model_params](https://reference.langchain.com/python/langchain-tests/integration_tests/chat_models/ChatModelIntegrationTests/standard_chat_model_params.md) (attribute): Standard parameters for chat model. - [structured_output_kwargs](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/structured_output_kwargs.md) (attribute): Additional kwargs to pass to `with_structured_output()` in tests - [supported_usage_metadata_details](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supported_usage_metadata_details.md) (attribute): Supported usage metadata details - [supports_anthropic_inputs](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_anthropic_inputs.md) (attribute): Whether the chat model supports Anthropic-style inputs. - [supports_audio_inputs](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_audio_inputs.md) (attribute): Supports audio inputs - [supports_image_inputs](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_image_inputs.md) (attribute): Supports image inputs - [supports_image_tool_message](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_image_tool_message.md) (attribute): Supports image `ToolMessage` objects - [supports_image_urls](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_image_urls.md) (attribute): Supports image inputs from URLs - [supports_json_mode](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_json_mode.md) (attribute): Whether the chat model supports JSON mode. - [supports_model_override](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_model_override.md) (attribute): Whether the model supports overriding the model name at runtime - [supports_pdf_inputs](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_pdf_inputs.md) (attribute): Whether the chat model supports PDF inputs, defaults to `False`. - [supports_pdf_tool_message](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_pdf_tool_message.md) (attribute): Supports PDF `ToolMessage` objects - [supports_video_inputs](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests/supports_video_inputs.md) (attribute): Supports video inputs - [TEST_PYDANTIC_MODELS](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/TEST_PYDANTIC_MODELS.md) (attribute) - [tool_constructor](https://reference.langchain.com/python/langchain-tests/unit_tests/tools/ToolsTests/tool_constructor.md) (attribute): Returns a class or instance of a tool to be tested. - [tool_constructor_params](https://reference.langchain.com/python/langchain-tests/unit_tests/tools/ToolsTests/tool_constructor_params.md) (attribute): Returns a dictionary of parameters to pass to the tool constructor. - [tool_invoke_params_example](https://reference.langchain.com/python/langchain-tests/unit_tests/tools/ToolsTests/tool_invoke_params_example.md) (attribute): Returns a dictionary representing the "args" of an example tool call - [V](https://reference.langchain.com/python/langchain-tests/integration_tests/base_store/V.md) (attribute) #### Classs - [AsyncCacheTestSuite](https://reference.langchain.com/python/langchain-tests/integration_tests/cache/AsyncCacheTestSuite.md) (class): Test suite for checking the `BaseCache` API of a caching layer for LLMs - [AsyncDocumentIndexTestSuite](https://reference.langchain.com/python/langchain-tests/integration_tests/indexer/AsyncDocumentIndexTestSuite.md) (class): Test suite for checking the read-write of a document index - [BaseStandardTests](https://reference.langchain.com/python/langchain-tests/base/BaseStandardTests.md) (class): Base class for standard tests. - [BaseStoreAsyncTests](https://reference.langchain.com/python/langchain-tests/integration_tests/base_store/BaseStoreAsyncTests.md) (class): Test suite for checking the key-value API of a `BaseStore` - [BaseStoreSyncTests](https://reference.langchain.com/python/langchain-tests/integration_tests/base_store/BaseStoreSyncTests.md) (class): Test suite for checking the key-value API of a `BaseStore` - [ChatModelIntegrationTests](https://reference.langchain.com/python/langchain-tests/integration_tests/chat_models/ChatModelIntegrationTests.md) (class): Base class for chat model integration tests - [ChatModelTests](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelTests.md) (class): Base class for chat model tests. - [ChatModelUnitTests](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/ChatModelUnitTests.md) (class): Base class for chat model unit tests - [CustomPersister](https://reference.langchain.com/python/langchain-tests/conftest/CustomPersister.md) (class): A custom persister for VCR that uses the `CustomSerializer`. - [CustomSerializer](https://reference.langchain.com/python/langchain-tests/conftest/CustomSerializer.md) (class): Custom serializer for VCR cassettes using YAML and gzip - [DocumentIndexerTestSuite](https://reference.langchain.com/python/langchain-tests/integration_tests/indexer/DocumentIndexerTestSuite.md) (class): Test suite for checking the read-write of a document index - [EmbeddingsIntegrationTests](https://reference.langchain.com/python/langchain-tests/integration_tests/embeddings/EmbeddingsIntegrationTests.md) (class): Base class for embeddings integration tests - [EmbeddingsTests](https://reference.langchain.com/python/langchain-tests/unit_tests/embeddings/EmbeddingsTests.md) (class): Embeddings tests base class. - [EmbeddingsUnitTests](https://reference.langchain.com/python/langchain-tests/unit_tests/embeddings/EmbeddingsUnitTests.md) (class): Base class for embeddings unit tests - [RetrieversIntegrationTests](https://reference.langchain.com/python/langchain-tests/integration_tests/retrievers/RetrieversIntegrationTests.md) (class): Base class for retrievers integration tests. - [SandboxIntegrationTests](https://reference.langchain.com/python/langchain-tests/integration_tests/sandboxes/SandboxIntegrationTests.md) (class): Standard integration tests for a `SandboxBackendProtocol` implementation. - [SyncCacheTestSuite](https://reference.langchain.com/python/langchain-tests/integration_tests/cache/SyncCacheTestSuite.md) (class): Test suite for checking the `BaseCache` API of a caching layer for LLMs - [ToolsIntegrationTests](https://reference.langchain.com/python/langchain-tests/integration_tests/tools/ToolsIntegrationTests.md) (class): Base class for tools integration tests. - [ToolsTests](https://reference.langchain.com/python/langchain-tests/unit_tests/tools/ToolsTests.md) (class): Base class for testing tools - [ToolsUnitTests](https://reference.langchain.com/python/langchain-tests/unit_tests/tools/ToolsUnitTests.md) (class): Base class for tools unit tests. - [VectorStoreIntegrationTests](https://reference.langchain.com/python/langchain-tests/integration_tests/vectorstores/VectorStoreIntegrationTests.md) (class): Base class for vector store integration tests #### Functions - [base_vcr_config](https://reference.langchain.com/python/langchain-tests/conftest/base_vcr_config.md) (function): Return VCR configuration that every cassette will receive - [generate_schema_pydantic](https://reference.langchain.com/python/langchain-tests/unit_tests/chat_models/generate_schema_pydantic.md) (function): Works with either pydantic 1 or 2. - [get_pydantic_major_version](https://reference.langchain.com/python/langchain-tests/utils/pydantic/get_pydantic_major_version.md) (function): Get the major version of Pydantic. --- _Note: This listing was truncated due to size limits._ _Use the individual package pages for complete symbol details._