agentconnect.servers.registry_api_server module¶
Registry API Server for AgentConnect
This server provides a REST API for the AgentConnect Registry, allowing agents to register, search, and manage their own metadata.
- create_registry_api_app(settings=None)¶
Factory to create a FastAPI app for the Registry API.
If settings is None, load from environment using RegistryAPISettings().
Configures CORS and lifespan using the provided settings.
- Return type:
FastAPI- Parameters:
settings (RegistryAPISettings | None)
- class AgentRegistrationUpdatePayload(**data)¶
Bases:
BaseModelAgent registration update payload.
- Parameters:
-
interaction_modes:
Optional[List[InteractionMode]]¶
-
capabilities:
Optional[List[Capability]]¶
- model_config: ClassVar[ConfigDict] = {'use_enum_values': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- get_registry()¶
Dependency injector for AgentRegistry instance.
- Return type:
- async health_check_endpoint()¶
Checks the operational status of the server and its core components. - Returns “healthy” if the server is running and the AgentRegistry is fully initialized. - Returns “initializing” if the AgentRegistry is still loading its dependencies. - Will return a 500 error via get_registry() if the registry instance is not available at all.
- async get_verified_agents_endpoint()¶
- Return type:
- async register_agent_endpoint(registration_data)¶
- Return type:
- Parameters:
registration_data (AgentRegistration)
- async get_all_agents_endpoint()¶
- Return type:
- async update_agent_registration_endpoint(agent_id, payload)¶
- Return type:
- Parameters:
agent_id (str)
payload (AgentRegistrationUpdatePayload)
- async search_agents_semantic_endpoint(search_input)¶
- Return type:
- Parameters:
search_input (AgentSearchInput)
- async search_agents_by_capability_exact_endpoint(capability_name=Query(PydanticUndefined), limit=Query(10), similarity_threshold=Query(0.1))¶
- Return type:
- Parameters:
- async get_agents_by_interaction_mode_endpoint(mode)¶
- Return type:
- Parameters:
mode (InteractionMode)
- async get_agents_by_organization_endpoint(organization_name)¶
- Return type:
- Parameters:
organization_name (str)