agentconnect.core.registry.search package¶
Registry Search Subdomain - Agent Search Interfaces and Utilities
This module provides schemas and utilities specifically for agent search operations. It serves as the interface layer between the registry domain and external consumers (API servers, MCP servers, LangChain tools, etc.).
- class AgentSearchInput(**data)¶
Bases:
BaseModelInput schema for agent search.
- Parameters:
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class AgentSearchOutput(**data)¶
Bases:
BaseModelOutput schema for agent search, containing a list of results.
- Parameters:
message (str)
results (List[AgentSearchResultItem])
- model_config: ClassVar[ConfigDict] = {'exclude_none': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
results:
List[AgentSearchResultItem]¶
- class AgentSearchResultItem(**data)¶
Bases:
BaseModelDefines the structure for each agent in the search results.
- Parameters:
- class Config¶
Bases:
objectConfig for the AgentSearchResultItem.
- exclude_none = True¶
- extra = 'ignore'¶
- model_config: ClassVar[ConfigDict] = {'exclude_none': True, 'extra': 'ignore'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- format_capabilities_for_output(cap_list)¶
Format capabilities list for search output.
- format_skills_for_output(skill_list)¶
Format skills list for search output.
- populate_search_result_item(registration, similarity_score, output_detail_level)¶
Populate
AgentSearchResultItemfromAgentRegistrationbased on detail level.This is the core utility that transforms registry domain objects into search interface objects, respecting the requested level of detail.
- Parameters:
registration (
AgentRegistration) – The agent registration from the registrysimilarity_score (
float) – Similarity score from search operationoutput_detail_level (
str) – Level of detail (‘minimal’, ‘summary’, ‘capabilities’, ‘full’)
- Return type:
- Returns:
Populated
AgentSearchResultItemwith appropriate level of detail
Submodules¶
- agentconnect.core.registry.search.schemas module
AgentSearchInputAgentSearchResultItemAgentSearchResultItem.agent_idAgentSearchResultItem.similarity_scoreAgentSearchResultItem.nameAgentSearchResultItem.urlAgentSearchResultItem.payment_addressAgentSearchResultItem.summaryAgentSearchResultItem.tagsAgentSearchResultItem.capabilitiesAgentSearchResultItem.skillsAgentSearchResultItem.descriptionAgentSearchResultItem.examplesAgentSearchResultItem.versionAgentSearchResultItem.organizationAgentSearchResultItem.developerAgentSearchResultItem.auth_schemesAgentSearchResultItem.default_input_modesAgentSearchResultItem.default_output_modesAgentSearchResultItem.ConfigAgentSearchResultItem.model_config
AgentSearchOutput
- agentconnect.core.registry.search.utils module