Home / Class/ ToolSelectionResponse Class — langchain Architecture

ToolSelectionResponse Class — langchain Architecture

Architecture documentation for the ToolSelectionResponse class in tool_selection.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  426a7fd7_9006_db83_d084_bcb63edaf4bd["ToolSelectionResponse"]
  740a7da1_ca4f_8c85_71e0_4f92696f1237["tool_selection.py"]
  426a7fd7_9006_db83_d084_bcb63edaf4bd -->|defined in| 740a7da1_ca4f_8c85_71e0_4f92696f1237

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/tool_selection.py lines 73–76

    class ToolSelectionResponse(TypedDict):
        """Use to select relevant tools."""

        tools: Annotated[list[selected_tool_type], Field(description=description)]  # type: ignore[valid-type]

Frequently Asked Questions

What is the ToolSelectionResponse class?
ToolSelectionResponse is a class in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/tool_selection.py.
Where is ToolSelectionResponse defined?
ToolSelectionResponse is defined in libs/langchain_v1/langchain/agents/middleware/tool_selection.py at line 73.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free