test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() — langchain Function Reference
Architecture documentation for the test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() function in test_agent_name.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7e2228d9_f615_d18c_2fa3_94289b9f1745["test_lc_agent_name_not_in_astream_metadata_when_name_not_provided()"] 855858ac_82a7_eb82_4d23_1dd8507dbcbb["test_agent_name.py"] 7e2228d9_f615_d18c_2fa3_94289b9f1745 -->|defined in| 855858ac_82a7_eb82_4d23_1dd8507dbcbb style 7e2228d9_f615_d18c_2fa3_94289b9f1745 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/test_agent_name.py lines 185–196
async def test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() -> None:
"""Test that lc_agent_name is not in async stream metadata when name not provided."""
tool_calls: list[list[ToolCall]] = [[]]
agent = create_agent(
model=FakeToolCallingModel(tool_calls=tool_calls),
)
async for _chunk, metadata in agent.astream(
{"messages": [HumanMessage("Hello async")]},
stream_mode="messages",
):
assert "lc_agent_name" not in metadata
Domain
Subdomains
Source
Frequently Asked Questions
What does test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() do?
test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/test_agent_name.py.
Where is test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() defined?
test_lc_agent_name_not_in_astream_metadata_when_name_not_provided() is defined in libs/langchain_v1/tests/unit_tests/agents/test_agent_name.py at line 185.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free