aiq.profiler.intermediate_property_adapter#

Classes#

IntermediatePropertyAdaptor

AIQIntermediateStep is a data model that represents an intermediate step in the AgentIQ. Intermediate steps are

Module Contents#

class IntermediatePropertyAdaptor(/, **data: Any)#

Bases: aiq.data_models.intermediate_step.IntermediateStep

AIQIntermediateStep is a data model that represents an intermediate step in the AgentIQ. Intermediate steps are captured while a request is running and can be used to show progress or to evaluate the path a workflow took to get a response.

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 allow self as a field name.

classmethod from_intermediate_step(
step: aiq.data_models.intermediate_step.IntermediateStep,
) IntermediatePropertyAdaptor#

Create an adaptor instance from an existing IntermediateStep. Uses the dict() representation of the instance to initialize the adaptor.

property token_usage: aiq.data_models.intermediate_step.TokenUsageBaseModel#
property seconds_between_calls: int#
property llm_text_input: str#
property llm_text_output: str#
property llm_text_chunk: str#
property tool_input: str#
property tool_output: str#
property llm_name: str#
property tool_name: str#
property function_name: str#
property function_id: str#
property parent_function_id: str#
property parent_function_name: str#