test_parse_tool_call_with_valid_arguments() — langchain Function Reference
Architecture documentation for the test_parse_tool_call_with_valid_arguments() function in test_openai_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5ca792ac_4d2a_14f4_ae77_aa959a2d3673["test_parse_tool_call_with_valid_arguments()"] 0f94a062_f577_31c7_fb9c_0f526b273e64["test_openai_tools.py"] 5ca792ac_4d2a_14f4_ae77_aa959a2d3673 -->|defined in| 0f94a062_f577_31c7_fb9c_0f526b273e64 style 5ca792ac_4d2a_14f4_ae77_aa959a2d3673 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 1398–1411
def test_parse_tool_call_with_valid_arguments() -> None:
"""Test parse_tool_call works normally with valid JSON arguments."""
raw_tool_call = {
"function": {"arguments": '{"param": "value"}', "name": "myTool"},
"id": "call_456",
"type": "function",
}
result = parse_tool_call(raw_tool_call, return_id=True)
assert result is not None
assert result["name"] == "myTool"
assert result["args"] == {"param": "value"}
assert result["id"] == "call_456"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_parse_tool_call_with_valid_arguments() do?
test_parse_tool_call_with_valid_arguments() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py.
Where is test_parse_tool_call_with_valid_arguments() defined?
test_parse_tool_call_with_valid_arguments() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py at line 1398.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free