aiq.profiler.intermediate_property_adapter#
Classes#
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 allowself
as a field name.- classmethod from_intermediate_step( ) 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#