test_bind_tools_tool_choice() — langchain Function Reference
Architecture documentation for the test_bind_tools_tool_choice() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b24ee23c_a1fa_12da_7f17_833aff82358e["test_bind_tools_tool_choice()"] 48232d20_f8c1_b597_14fa_7dc407e9bfe5["test_base.py"] b24ee23c_a1fa_12da_7f17_833aff82358e -->|defined in| 48232d20_f8c1_b597_14fa_7dc407e9bfe5 style b24ee23c_a1fa_12da_7f17_833aff82358e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_base.py lines 910–915
def test_bind_tools_tool_choice(tool_choice: Any, strict: bool | None) -> None:
"""Test passing in manually construct tool call message."""
llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0)
llm.bind_tools(
tools=[GenerateUsername, MakeASandwich], tool_choice=tool_choice, strict=strict
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_bind_tools_tool_choice() do?
test_bind_tools_tool_choice() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/chat_models/test_base.py.
Where is test_bind_tools_tool_choice() defined?
test_bind_tools_tool_choice() is defined in libs/partners/openai/tests/unit_tests/chat_models/test_base.py at line 910.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free