_is_valid_mistral_tool_call_id() — langchain Function Reference
Architecture documentation for the _is_valid_mistral_tool_call_id() function in chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 76bc7ada_a973_1a8c_e8b0_7b26594a42d3["_is_valid_mistral_tool_call_id()"] cfb937d2_ce7f_5338_2b62_6452043ac78a["chat_models.py"] 76bc7ada_a973_1a8c_e8b0_7b26594a42d3 -->|defined in| cfb937d2_ce7f_5338_2b62_6452043ac78a 17458072_b7f3_6bde_1cc2_60c8f77a0cbc["_convert_tool_call_id_to_mistral_compatible()"] 17458072_b7f3_6bde_1cc2_60c8f77a0cbc -->|calls| 76bc7ada_a973_1a8c_e8b0_7b26594a42d3 style 76bc7ada_a973_1a8c_e8b0_7b26594a42d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/mistralai/langchain_mistralai/chat_models.py lines 113–115
def _is_valid_mistral_tool_call_id(tool_call_id: str) -> bool:
"""Check if tool call ID is nine character string consisting of a-z, A-Z, 0-9."""
return bool(TOOL_CALL_ID_PATTERN.match(tool_call_id))
Domain
Subdomains
Source
Frequently Asked Questions
What does _is_valid_mistral_tool_call_id() do?
_is_valid_mistral_tool_call_id() is a function in the langchain codebase, defined in libs/partners/mistralai/langchain_mistralai/chat_models.py.
Where is _is_valid_mistral_tool_call_id() defined?
_is_valid_mistral_tool_call_id() is defined in libs/partners/mistralai/langchain_mistralai/chat_models.py at line 113.
What calls _is_valid_mistral_tool_call_id()?
_is_valid_mistral_tool_call_id() is called by 1 function(s): _convert_tool_call_id_to_mistral_compatible.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free