message() — langchain Function Reference
Architecture documentation for the message() function in test_openai_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b1ba0cf5_441b_68e4_5856_075f383abcf1["message()"] 0f94a062_f577_31c7_fb9c_0f526b273e64["test_openai_tools.py"] b1ba0cf5_441b_68e4_5856_075f383abcf1 -->|defined in| 0f94a062_f577_31c7_fb9c_0f526b273e64 style b1ba0cf5_441b_68e4_5856_075f383abcf1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_openai_tools.py lines 318–335
if message.additional_kwargs:
STREAMED_MESSAGES_WITH_TOOL_CALLS.append(
AIMessageChunk(
content=message.content,
additional_kwargs=message.additional_kwargs,
tool_call_chunks=[
ToolCallChunk(
name=chunk["function"].get("name"),
args=chunk["function"].get("arguments"),
id=chunk.get("id"),
index=chunk["index"],
)
for chunk in message.additional_kwargs["tool_calls"]
],
)
)
else:
STREAMED_MESSAGES_WITH_TOOL_CALLS.append(message)
Domain
Subdomains
Source
Frequently Asked Questions
What does message() do?
message() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py.
Where is message() defined?
message() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_tools.py at line 318.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free