test_public_api.py — langchain Source File
Architecture documentation for test_public_api.py, a python file in the langchain codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR aca43a51_d3da_0f65_4bd3_400b814fc39a["test_public_api.py"] 37814a67_ff56_3f91_8aa4_794e5ef7a906["langchain_classic.agents"] aca43a51_d3da_0f65_4bd3_400b814fc39a --> 37814a67_ff56_3f91_8aa4_794e5ef7a906 style aca43a51_d3da_0f65_4bd3_400b814fc39a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from langchain_classic.agents import __all__ as agents_all
_EXPECTED = [
"Agent",
"AgentExecutor",
"AgentExecutorIterator",
"AgentOutputParser",
"AgentType",
"BaseMultiActionAgent",
"BaseSingleActionAgent",
"ConversationalAgent",
"ConversationalChatAgent",
"LLMSingleActionAgent",
"MRKLChain",
"OpenAIFunctionsAgent",
"OpenAIMultiFunctionsAgent",
"ReActChain",
"ReActTextWorldAgent",
"SelfAskWithSearchChain",
"StructuredChatAgent",
"Tool",
"XMLAgent",
"ZeroShotAgent",
"create_json_agent",
"create_openapi_agent",
"create_pbi_agent",
"create_pbi_chat_agent",
"create_spark_sql_agent",
"create_sql_agent",
"create_vectorstore_agent",
"create_vectorstore_router_agent",
"get_all_tool_names",
"initialize_agent",
"load_agent",
"load_huggingface_tool",
"load_tools",
"tool",
"create_openai_functions_agent",
"create_xml_agent",
"create_react_agent",
"create_openai_tools_agent",
"create_self_ask_with_search_agent",
"create_json_chat_agent",
"create_structured_chat_agent",
"create_tool_calling_agent",
]
def test_public_api() -> None:
"""Test for regressions or changes in the agents public API."""
assert sorted(agents_all) == sorted(_EXPECTED)
Domain
Subdomains
Functions
Dependencies
- langchain_classic.agents
Source
Frequently Asked Questions
What does test_public_api.py do?
test_public_api.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, MessageSchema subdomain.
What functions are defined in test_public_api.py?
test_public_api.py defines 1 function(s): test_public_api.
What does test_public_api.py depend on?
test_public_api.py imports 1 module(s): langchain_classic.agents.
Where is test_public_api.py in the architecture?
test_public_api.py is located at libs/langchain/tests/unit_tests/agents/test_public_api.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/langchain/tests/unit_tests/agents).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free