self_query_mcp_agent_v2¶
Self Query MCP Discovery Agent - Proper Haive Implementation.
This agent uses Haive’s configuration system properly by extending BaseRAGAgent and using SelfQueryRetrieverConfig instead of manually creating retrievers.
Classes¶
Load and process MCP server documents. |
|
Metadata schema for MCP servers. |
|
Enhanced MCP Discovery Agent using proper Haive configuration system. |
Functions¶
Test the MCP agent. |
Module Contents¶
- class self_query_mcp_agent_v2.MCPDocumentLoader¶
Load and process MCP server documents.
- class self_query_mcp_agent_v2.MCPServerMetadata(/, **data: Any)¶
Bases:
pydantic.BaseModel
Metadata schema for MCP servers.
- class self_query_mcp_agent_v2.SelfQueryMCPAgent(name: str = 'mcp_self_query_agent')¶
Bases:
haive.agents.rag.base.agent.BaseRAGAgent
Enhanced MCP Discovery Agent using proper Haive configuration system.
- async self_query_mcp_agent_v2.test_mcp_agent()¶
Test the MCP agent.