aiq.data_models.intermediate_step#
Classes#
str(object='') -> str |
|
str(object='') -> str |
|
str(object='') -> str |
|
AIQStreamEventData is a data model that represents the data field in an streaming event. |
|
AIQIntermediateStep is a data model that represents an intermediate step in the AgentIQ. Intermediate steps are |
|
AIQIntermediateStep is a data model that represents an intermediate step in the AgentIQ. Intermediate steps are |
Module Contents#
- class IntermediateStepCategory#
-
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Initialize self. See help(type(self)) for accurate signature.
- LLM = 'LLM'#
- TOOL = 'TOOL'#
- WORKFLOW = 'WORKFLOW'#
- TASK = 'TASK'#
- FUNCTION = 'FUNCTION'#
- CUSTOM = 'CUSTOM'#
- class IntermediateStepType#
-
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Initialize self. See help(type(self)) for accurate signature.
- LLM_START = 'LLM_START'#
- LLM_END = 'LLM_END'#
- LLM_NEW_TOKEN = 'LLM_NEW_TOKEN'#
- TOOL_START = 'TOOL_START'#
- TOOL_END = 'TOOL_END'#
- WORKFLOW_START = 'WORKFLOW_START'#
- WORKFLOW_END = 'WORKFLOW_END'#
- TASK_START = 'TASK_START'#
- TASK_END = 'TASK_END'#
- FUNCTION_START = 'FUNCTION_START'#
- FUNCTION_END = 'FUNCTION_END'#
- CUSTOM_START = 'CUSTOM_START'#
- CUSTOM_END = 'CUSTOM_END'#
- class IntermediateStepState#
-
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Initialize self. See help(type(self)) for accurate signature.
- START = 'START'#
- CHUNK = 'CHUNK'#
- END = 'END'#
- class StreamEventData(/, **data: Any)#
Bases:
pydantic.BaseModel
AIQStreamEventData is a data model that represents the data field in an streaming event.
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.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
- class UsageInfo(/, **data: Any)#
Bases:
pydantic.BaseModel
- class TraceMetadata(/, **data: Any)#
Bases:
pydantic.BaseModel
- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
- class IntermediateStepPayload(/, **data: Any)#
Bases:
pydantic.BaseModel
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.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
- event_type: IntermediateStepType#
- framework: aiq.builder.framework_enum.LLMFrameworkEnum | None = None#
- metadata: dict[str, Any] | TraceMetadata | None = None#
- data: StreamEventData | None = None#
- property event_category: IntermediateStepCategory#
- property event_state: IntermediateStepState#
- check_span_event_timestamp() IntermediateStepPayload #
- class IntermediateStep(/, **data: Any)#
Bases:
pydantic.BaseModel
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.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
- function_ancestry: aiq.data_models.invocation_node.InvocationNode | None#
- payload: IntermediateStepPayload#
- property event_type: IntermediateStepType#
- property framework: aiq.builder.framework_enum.LLMFrameworkEnum | None#
- property metadata: dict[str, Any] | TraceMetadata | None#
- property data: StreamEventData | None#
- property event_category: IntermediateStepCategory#
- property event_state: IntermediateStepState#