test_func_call_no_args() — langchain Function Reference
Architecture documentation for the test_func_call_no_args() function in test_openai_functions.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f51bd11b_1d16_33b1_ddad_7a1a694d2911["test_func_call_no_args()"] 1fe72b94_a8cc_d072_fc0a_71824fccb3c3["test_openai_functions.py"] f51bd11b_1d16_33b1_ddad_7a1a694d2911 -->|defined in| 1fe72b94_a8cc_d072_fc0a_71824fccb3c3 style f51bd11b_1d16_33b1_ddad_7a1a694d2911 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py lines 53–65
def test_func_call_no_args() -> None:
parser = OpenAIFunctionsAgentOutputParser()
msg = AIMessage(
content="LLM thoughts.",
additional_kwargs={"function_call": {"name": "foo", "arguments": ""}},
)
result = parser.invoke(msg)
assert isinstance(result, AgentActionMessageLog)
assert result.tool == "foo"
assert result.tool_input == {}
assert result.log == ("\nInvoking: `foo` with `{}`\nresponded: LLM thoughts.\n\n")
assert result.message_log == [msg]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_func_call_no_args() do?
test_func_call_no_args() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py.
Where is test_func_call_no_args() defined?
test_func_call_no_args() is defined in libs/langchain/tests/unit_tests/agents/output_parsers/test_openai_functions.py at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free