test_create_agent_with_various_system_prompts() — langchain Function Reference
Architecture documentation for the test_create_agent_with_various_system_prompts() function in test_system_message.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7f038115_cb69_df91_7e38_3598eba03d38["test_create_agent_with_various_system_prompts()"] 67239a10_78a9_dbf5_c896_a977a47fe9a2["TestCreateAgentSystemMessage"] 7f038115_cb69_df91_7e38_3598eba03d38 -->|defined in| 67239a10_78a9_dbf5_c896_a977a47fe9a2 style 7f038115_cb69_df91_7e38_3598eba03d38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/test_system_message.py lines 343–354
def test_create_agent_with_various_system_prompts(
self, system_prompt: SystemMessage | str | None
) -> None:
"""Test create_agent accepts various system_prompt formats."""
model = GenericFakeChatModel(messages=iter([AIMessage(content="Hello")]))
agent = create_agent(
model=model,
system_prompt=system_prompt,
)
assert agent is not None
Domain
Subdomains
Source
Frequently Asked Questions
What does test_create_agent_with_various_system_prompts() do?
test_create_agent_with_various_system_prompts() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/test_system_message.py.
Where is test_create_agent_with_various_system_prompts() defined?
test_create_agent_with_various_system_prompts() is defined in libs/langchain_v1/tests/unit_tests/agents/test_system_message.py at line 343.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free