Home / Function/ has_tool_choice() — langchain Function Reference

has_tool_choice() — langchain Function Reference

Architecture documentation for the has_tool_choice() function in test_chat_models_standard.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  28c6af1a_cde5_2d96_ef3f_43035489fb48["has_tool_choice()"]
  67c98f71_98c8_ee70_5890_4801ea888ea7["TestChatOllama"]
  28c6af1a_cde5_2d96_ef3f_43035489fb48 -->|defined in| 67c98f71_98c8_ee70_5890_4801ea888ea7
  style 28c6af1a_cde5_2d96_ef3f_43035489fb48 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_standard.py lines 26–29

    def has_tool_choice(self) -> bool:
        # TODO: update after Ollama implements
        # https://github.com/ollama/ollama/blob/main/docs/openai.md#supported-request-fields
        return False

Domain

Subdomains

Frequently Asked Questions

What does has_tool_choice() do?
has_tool_choice() is a function in the langchain codebase, defined in libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_standard.py.
Where is has_tool_choice() defined?
has_tool_choice() is defined in libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_standard.py at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free