nat.agent.reasoning_agent.reasoning_agent#
Attributes#
Classes#
Defines a NAT function that performs reasoning on the input data. |
Functions#
|
Build a ReasoningFunction from the provided config. |
Module Contents#
- logger#
- class ReasoningFunctionConfig(/, **data: Any)#
Bases:
nat.data_models.agent.AgentBaseConfigDefines a NAT 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.selfis explicitly positional-only to allowselfas a field name.- augmented_fn: nat.data_models.component_ref.FunctionRef = None#
- async build_reasoning_function(
- config: ReasoningFunctionConfig,
- builder: nat.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.