aiq.registry_handlers.local.local_handler#

Attributes#

Classes#

LocalRegistryHandler

A registry handler for interactions with a local Python environment.

Module Contents#

logger#
class LocalRegistryHandler#

Bases: aiq.registry_handlers.registry_handler_base.AbstractRegistryHandler

A registry handler for interactions with a local Python environment.

search_fields: list[aiq.registry_handlers.schemas.search.SearchFields]#
async publish(
artifact: aiq.registry_handlers.schemas.publish.AIQArtifact,
) collections.abc.AsyncGenerator[aiq.registry_handlers.schemas.publish.PublishResponse]#

Publishes an AgentIQ artifact to a local registry.

Args:

artifact (AIQArtifact): An artifact that contain AgentIQ plugin wheel and it’s corrosponding discovery metadata.

Yields:

Iterator[AsyncGenerator[PublishResponse]]: A response message that includes a completion status message.

async pull(
packages: aiq.registry_handlers.schemas.pull.PullRequestPackages,
) collections.abc.AsyncGenerator[aiq.registry_handlers.schemas.pull.PullResponse]#

Download and install AgentIQ artifacts from a local registry.

Args:

packages (PullRequestPackages): Parameters used to pull the AgentIQ artifact.

Yields:
Iterator[AsyncGenerator[PullResponse]]: A response message that includes a the pulled packages and a

completion status message.

async search(
query: aiq.registry_handlers.schemas.search.SearchQuery,
) collections.abc.AsyncGenerator[aiq.registry_handlers.schemas.search.SearchResponse]#

Searches the local aiq registry for relevant AgentIQ components.

Args:

query (SearchQuery): Parameters of the search to be performed.

Yields:
Iterator[AsyncGenerator[SearchResponse]]: A response message that includes search

parameters and a completion status message.

async remove(
packages: aiq.registry_handlers.schemas.package.PackageNameVersionList,
) collections.abc.AsyncGenerator[aiq.registry_handlers.schemas.remove.RemoveResponse]#

Uninstall packages from the local Python environment.

Args:

packages (PackageNameVersionList): The list of packages to remove.

Yields:
Iterator[AsyncGenerator[RemoveResponse]]: A response message that includes the packages and a

completion status message.