nat.experimental.test_time_compute.functions.ttc_tool_wrapper_function#
Attributes#
Classes#
Configuration for the TTCToolWrapperFunction, which is used to wrap a function that will be executed |
Functions#
|
Register the TTCToolWrapperFunction with the provided builder and configuration. |
Module Contents#
- logger#
- class TTCToolWrapperFunctionConfig(/, **data: Any)#
Bases:
nat.data_models.function.FunctionBaseConfigConfiguration for the TTCToolWrapperFunction, which is used to wrap a function that will be executed in the inference time scaling pipeline.
This function is responsible for turning an ‘objective’ or description for the tool into tool input.
NOTE: Only supports LLMs with structured output.
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#
- input_llm: nat.data_models.component_ref.LLMRef = None#
- async register_ttc_tool_wrapper_function(
- config: TTCToolWrapperFunctionConfig,
- builder: nat.builder.builder.Builder,
Register the TTCToolWrapperFunction with the provided builder and configuration.