aiq.registry_handlers.schemas.search#

Attributes#

Classes#

SearchFields

str(object='') -> str

VisualizeFields

str(object='') -> str

SearchQuery

Represents the search criteria that will be used to discover useful AgentIQ components.

SearchResponseItem

Represents an individual item in the search response, including elements of it's discovery metadata.

SearchResponse

Represents a data model of the expected search response.

Module Contents#

logger#
class SearchFields#

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

Initialize self. See help(type(self)) for accurate signature.

ALL = 'all'#
PACKAGE = 'package'#
VERSION = 'version'#
COMPONENT_NAME = 'component_name'#
DESCRIPTION = 'description'#
DEVELOPER_NOTES = 'developer_notes'#
class VisualizeFields#

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

Initialize self. See help(type(self)) for accurate signature.

PACKAGE = 'package'#
VERSION = 'version'#
COMPONENT_TYPE = 'component_type'#
COMPONENT_NAME = 'component_name'#
DESCRIPTION = 'description'#
class SearchQuery(/, **data: Any)#

Bases: pydantic.BaseModel

Represents the search criteria that will be used to discover useful AgentIQ components.

Args:

query (str): A query string used to find useful AgentIQ components. fields (list[SearchFields]): The list of fields used when applying the query string. component_types (list[AIQComponentEnum]): AgentIQ components types to filter search results. top_k (int): Specifies the number of search results to provide.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

query: str = '*'#
fields: list[SearchFields]#
component_types: list[aiq.data_models.component.AIQComponentEnum]#
top_k: int = 10#
class SearchResponseItem(/, **data: Any)#

Bases: pydantic.BaseModel

Represents an individual item in the search response, including elements of it’s discovery metadata.

Args:

package (str): The name of the AgentIQ package that includes the component. version (str): The version of the AgentIQ package that includes the component. component_type (AIQComponentEnum): Type of AgentIQ component this item represents. description (str): A description of this AgentIQ component. developer_notes (str): Additional details that would help a developer use this component.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

package: str#
version: str#
component_type: aiq.data_models.component.AIQComponentEnum#
component_name: str#
description: str#
developer_notes: str#
class SearchResponse(/, **data: Any)#

Bases: pydantic.BaseModel

Represents a data model of the expected search response.

Args:

results (list[SearchResponseItem]): A list of results that matched the search criteria. params (SearchQuery): The search criterial that produced these search results. status (StatusMessage): Provides metadata describing the success or errors that occurred when making the search request.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

results: list[SearchResponseItem] = []#
params: SearchQuery#
status: aiq.registry_handlers.schemas.status.StatusMessage#