aiq.builder.builder#
Classes#
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Module Contents#
- class UserManagerHolder(context: aiq.builder.context.AIQContext)#
- _context#
- get_id()#
- class Builder#
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- abstractmethod add_function(
- name: str | aiq.data_models.component_ref.FunctionRef,
- config: aiq.data_models.function.FunctionBaseConfig,
- Async:
- abstractmethod get_function( ) aiq.builder.function.Function #
- get_functions(
- function_names: collections.abc.Sequence[str | aiq.data_models.component_ref.FunctionRef],
- abstractmethod get_function_config( ) aiq.data_models.function.FunctionBaseConfig #
- abstractmethod set_workflow( ) aiq.builder.function.Function #
- Async:
- abstractmethod get_workflow() aiq.builder.function.Function #
- abstractmethod get_workflow_config() aiq.data_models.function.FunctionBaseConfig #
- get_tools(
- tool_names: collections.abc.Sequence[str | aiq.data_models.component_ref.FunctionRef],
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- abstractmethod get_tool(
- fn_name: str | aiq.data_models.component_ref.FunctionRef,
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- abstractmethod add_llm(
- name: str | aiq.data_models.component_ref.LLMRef,
- config: aiq.data_models.llm.LLMBaseConfig,
- Async:
- async get_llms(
- llm_names: collections.abc.Sequence[str | aiq.data_models.component_ref.LLMRef],
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- abstractmethod get_llm(
- llm_name: str | aiq.data_models.component_ref.LLMRef,
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- Async:
- abstractmethod get_llm_config(
- llm_name: str | aiq.data_models.component_ref.LLMRef,
- abstractmethod add_embedder(
- name: str | aiq.data_models.component_ref.EmbedderRef,
- config: aiq.data_models.embedder.EmbedderBaseConfig,
- Async:
- async get_embedders(
- embedder_names: collections.abc.Sequence[str | aiq.data_models.component_ref.EmbedderRef],
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- abstractmethod get_embedder(
- embedder_name: str | aiq.data_models.component_ref.EmbedderRef,
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- Async:
- abstractmethod get_embedder_config(
- embedder_name: str | aiq.data_models.component_ref.EmbedderRef,
- abstractmethod add_memory_client(
- name: str | aiq.data_models.component_ref.MemoryRef,
- config: aiq.data_models.memory.MemoryBaseConfig,
- Async:
- get_memory_clients(
- memory_names: collections.abc.Sequence[str | aiq.data_models.component_ref.MemoryRef],
Return a list of memory clients for the specified names.
- abstractmethod get_memory_client(
- memory_name: str | aiq.data_models.component_ref.MemoryRef,
Return the instantiated memory client for the given name.
- abstractmethod get_memory_client_config(
- memory_name: str | aiq.data_models.component_ref.MemoryRef,
- abstractmethod add_retriever(
- name: str | aiq.data_models.component_ref.RetrieverRef,
- config: aiq.data_models.retriever.RetrieverBaseConfig,
- Async:
- async get_retrievers(
- retriever_names: collections.abc.Sequence[str | aiq.data_models.component_ref.RetrieverRef],
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str | None = None,
- async get_retriever(
- retriever_name: str | aiq.data_models.component_ref.RetrieverRef,
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,
- async get_retriever(
- retriever_name: str | aiq.data_models.component_ref.RetrieverRef,
- wrapper_type: None,
- async get_retriever(
- retriever_name: str | aiq.data_models.component_ref.RetrieverRef,
- abstractmethod get_retriever_config(
- retriever_name: str | aiq.data_models.component_ref.RetrieverRef,
- Async:
- abstractmethod get_user_manager() UserManagerHolder #
- abstractmethod get_function_dependencies(
- fn_name: str,
- class EvalBuilder#
Bases:
Builder
Helper class that provides a standard way to create an ABC using inheritance.
- abstractmethod add_evaluator(
- name: str,
- config: aiq.data_models.evaluator.EvaluatorBaseConfig,
- Async:
- abstractmethod get_evaluator_config(
- evaluator_name: str,
- abstractmethod get_output_dir() pathlib.Path #
- abstractmethod get_all_tools(
- wrapper_type: aiq.builder.framework_enum.LLMFrameworkEnum | str,