aiq.registry_handlers.schemas.search#
Attributes#
Classes#
str(object='') -> str |
|
str(object='') -> str |
|
Represents the search criteria that will be used to discover useful AgentIQ components. |
|
Represents an individual item in the search response, including elements of it's discovery metadata. |
|
Represents a data model of the expected search response. |
Module Contents#
- logger#
- class SearchFields#
-
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#
-
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 allowself
as a field name.- fields: list[SearchFields]#
- component_types: list[aiq.data_models.component.AIQComponentEnum]#
- 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 allowself
as a field name.- component_type: aiq.data_models.component.AIQComponentEnum#
- 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 allowself
as a field name.- results: list[SearchResponseItem] = []#
- params: SearchQuery#