dataflow.api.routes.agent_discovery_routes¶
Agent discovery and management API routes.
This module provides FastAPI routes for discovering and managing both v1 and v2 agents: - v1 agents: haive.engine.agent.config/agent (config-based agents) - v2 agents: haive.agents.base.agent (direct agent classes)
Attributes¶
Classes¶
Request to create/instantiate an agent. |
|
Response from agent creation. |
|
Information about an agent. |
|
Response for agent list endpoint. |
|
Agent configuration/input schema information. |
Functions¶
|
Discover both v1 and v2 agents. |
|
Discover v1 agents from haive.engine.agent. |
|
Discover v2 agents from haive.agents.base.agent. |
|
Get detailed information about a specific agent. |
|
Get the configuration/initialization schema for a specific agent. |
|
List all available agents (both v1 and v2). |
|
Search for agents by query, type, or category. |
Module Contents¶
- class dataflow.api.routes.agent_discovery_routes.AgentCreateRequest(/, **data: Any)¶
Bases:
pydantic.BaseModelRequest to create/instantiate an agent.
- class dataflow.api.routes.agent_discovery_routes.AgentCreateResponse(/, **data: Any)¶
Bases:
pydantic.BaseModelResponse from agent creation.
- class dataflow.api.routes.agent_discovery_routes.AgentInfo(/, **data: Any)¶
Bases:
pydantic.BaseModelInformation about an agent.
- class dataflow.api.routes.agent_discovery_routes.AgentListResponse(/, **data: Any)¶
Bases:
pydantic.BaseModelResponse for agent list endpoint.
- class dataflow.api.routes.agent_discovery_routes.AgentSchema(/, **data: Any)¶
Bases:
pydantic.BaseModelAgent configuration/input schema information.
- dataflow.api.routes.agent_discovery_routes.discover_all_agents() list[AgentInfo]¶
Discover both v1 and v2 agents.
- dataflow.api.routes.agent_discovery_routes.discover_v1_agents() list[AgentInfo]¶
Discover v1 agents from haive.engine.agent.
- dataflow.api.routes.agent_discovery_routes.discover_v2_agents() list[AgentInfo]¶
Discover v2 agents from haive.agents.base.agent.
- async dataflow.api.routes.agent_discovery_routes.get_agent_details(agent_name: str) dict[str, Any]¶
Get detailed information about a specific agent.
- Parameters:
agent_name – Name of the agent to get details for
- Returns:
Detailed information about the agent
- async dataflow.api.routes.agent_discovery_routes.get_agent_schema(agent_name: str) AgentSchema¶
Get the configuration/initialization schema for a specific agent.
- Parameters:
agent_name – Name of the agent to get schema for
- Returns:
AgentSchema containing configuration and method information
- async dataflow.api.routes.agent_discovery_routes.list_agents() AgentListResponse¶
List all available agents (both v1 and v2).
- Returns:
AgentListResponse containing list of available agents
- async dataflow.api.routes.agent_discovery_routes.search_agents(query: str | None = None, agent_type: str | None = None, category: str | None = None) AgentListResponse¶
Search for agents by query, type, or category.
- Parameters:
query – Search query to match against agent names and descriptions
agent_type – Filter by agent type (‘v1’ or ‘v2’)
category – Filter by category
- Returns:
AgentListResponse containing filtered list of agents
- dataflow.api.routes.agent_discovery_routes.logger¶
- dataflow.api.routes.agent_discovery_routes.router¶