dataflow.api.routes.agent_discovery_routes_fixed¶
Agent discovery and management API routes using unified discovery system.
This module provides FastAPI routes for discovering and managing agents using the haive-core discovery system.
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¶
|
Convert a ComponentInfo to AgentInfo. |
|
Discover all agents using the unified discovery system. |
|
Get detailed information about a specific agent. |
|
Get the configuration/initialization schema for a specific agent. |
|
Get summary statistics about discovered agents. |
Get or create the discovery instance. |
|
|
List all available agents. |
|
Refresh the agent discovery cache. |
|
Search for agents by query, type, or category. |
Module Contents¶
- class dataflow.api.routes.agent_discovery_routes_fixed.AgentCreateRequest(/, **data: Any)¶
Bases:
pydantic.BaseModelRequest to create/instantiate an agent.
- class dataflow.api.routes.agent_discovery_routes_fixed.AgentCreateResponse(/, **data: Any)¶
Bases:
pydantic.BaseModelResponse from agent creation.
- class dataflow.api.routes.agent_discovery_routes_fixed.AgentInfo(/, **data: Any)¶
Bases:
pydantic.BaseModelInformation about an agent.
- class dataflow.api.routes.agent_discovery_routes_fixed.AgentListResponse(/, **data: Any)¶
Bases:
pydantic.BaseModelResponse for agent list endpoint.
- class dataflow.api.routes.agent_discovery_routes_fixed.AgentSchema(/, **data: Any)¶
Bases:
pydantic.BaseModelAgent configuration/input schema information.
- dataflow.api.routes.agent_discovery_routes_fixed.component_to_agent_info(component: haive.dataflow.api.routes.utils.haive_discovery.ComponentInfo) AgentInfo¶
Convert a ComponentInfo to AgentInfo.
- dataflow.api.routes.agent_discovery_routes_fixed.discover_all_agents(force_refresh: bool = False) list[haive.dataflow.api.routes.utils.haive_discovery.ComponentInfo]¶
Discover all agents using the unified discovery system.
- async dataflow.api.routes.agent_discovery_routes_fixed.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_fixed.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_fixed.get_agent_stats() dict[str, Any]¶
Get summary statistics about discovered agents.
- Returns:
Summary statistics
- dataflow.api.routes.agent_discovery_routes_fixed.get_discovery_instance() haive.dataflow.api.routes.utils.haive_discovery.HaiveComponentDiscovery¶
Get or create the discovery instance.
- async dataflow.api.routes.agent_discovery_routes_fixed.list_agents(force_refresh: bool = False) AgentListResponse¶
List all available agents.
- Parameters:
force_refresh – Force refresh the agent cache
- Returns:
AgentListResponse containing list of available agents
- async dataflow.api.routes.agent_discovery_routes_fixed.refresh_agent_cache() dict[str, Any]¶
Refresh the agent discovery cache.
- Returns:
Status and count of discovered agents
- async dataflow.api.routes.agent_discovery_routes_fixed.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_fixed.logger¶
- dataflow.api.routes.agent_discovery_routes_fixed.router¶