test_parse_tool_call_partial_mode_with_none_arguments() — langchain Function Reference
Architecture documentation for the test_parse_tool_call_partial_mode_with_none_arguments() function in test_openai_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a73e1daf_deeb_c4c3_36ff_84e9bda8e00c["test_parse_tool_call_partial_mode_with_none_arguments()"] 0f94a062_f577_31c7_fb9c_0f526b273e64["test_openai_tools.py"] a73e1daf_deeb_c4c3_36ff_84e9bda8e00c -->|defined in| 0f94a062_f577_31c7_fb9c_0f526b273e64 style a73e1daf_deeb_c4c3_36ff_84e9bda8e00c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 1414–1426
def test_parse_tool_call_partial_mode_with_none_arguments() -> None:
"""Test parse_tool_call in partial mode handles None arguments."""
raw_tool_call = {
"function": {"arguments": None, "name": "streamingTool"},
"id": "call_789",
"type": "function",
}
# Partial mode should return None for None arguments (existing behavior)
result = parse_tool_call(raw_tool_call, partial=True, return_id=True)
# In partial mode, None arguments returns None (incomplete tool call)
assert result is None
Domain
Subdomains
Source
Frequently Asked Questions
What does test_parse_tool_call_partial_mode_with_none_arguments() do?
test_parse_tool_call_partial_mode_with_none_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_partial_mode_with_none_arguments() defined?
test_parse_tool_call_partial_mode_with_none_arguments() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py at line 1414.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free