aiq.agent.reasoning_agent.reasoning_agent#
Attributes#
Classes#
Defines an AIQ Toolkit function that performs reasoning on the input data. |
Functions#
|
Build a ReasoningFunction from the provided config. |
Module Contents#
- logger#
- class ReasoningFunctionConfig(/, **data: Any)#
Bases:
aiq.data_models.function.FunctionBaseConfig
Defines an AIQ Toolkit function that performs reasoning on the input data. Output is passed to the next function in the workflow.
Designed to be used with an InterceptingFunction.
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.- llm_name: aiq.data_models.component_ref.LLMRef = None#
- augmented_fn: aiq.data_models.component_ref.FunctionRef = None#
- async build_reasoning_function(
- config: ReasoningFunctionConfig,
- builder: aiq.builder.builder.Builder,
Build a ReasoningFunction from the provided config.
- Args:
config (ReasoningFunctionConfig): The config for the ReasoningFunction. builder (Builder): The Builder instance to use for building the function.
- Returns:
ReasoningFunction: The built ReasoningFunction.