This task can be a question, a prompt, etc. It can include additional parameters and artifacts.

interface Step {
    cost?: number;
    created_at?: Date;
    input_artifacts?: Artifact[];
    input_params?: {
        [name: string]: string;
    }[];
    input_query: string;
    is_last?: boolean;
    name?: string;
    output: any;
    output_additional?: {
        [name: string]: any;
    }[];
    output_artifacts?: any[];
    predecessor?: string;
    retries?: number;
    step_id: string;
    step_status: AgentExecutionStatus;
    task_id: string;
    updated_at?: Date;
}

Hierarchy (view full)

Properties

cost?: number

The cost in credits resulting from the execution of the task or the step

created_at?: Date

When the execution was created

input_artifacts?: Artifact[]

List of artifact ids that are associated with the task

input_params?: {
    [name: string]: string;
}[]

Additional parameters required for the task

Type declaration

  • [name: string]: string
input_query: string

The input for the task. It can be a prompt, a question, etc

is_last?: boolean

Whether this is the last step in the task.

name?: string

The name of the step

output: any

The main output generated by a task or step

output_additional?: {
    [name: string]: any;
}[]

Additional output generated

Type declaration

  • [name: string]: any
output_artifacts?: any[]

List of artifact generated by the task or step

predecessor?: string

The step preceeding the current step if any

retries?: number

The number of retries for the task or step

step_id: string

The unique identifier of the step

The status of the execution

task_id: string

The task that the step belongs to

updated_at?: Date

When the execution was last updated