List Run Steps
Get messages associated with a run with filtering options.
Args:
run_id: ID of the run
before: A cursor for use in pagination. before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
after: A cursor for use in pagination. after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
limit: Maximum number of steps to return
order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
Returns: A list of steps associated with the run.
Path parameters
Headers
Header authentication of the form Bearer <token>
Query parameters
Cursor for pagination
Cursor for pagination
Maximum number of messages to return
Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
Response
Successful Response
The id of the step. Assigned by the database.
The surface that this agent step was initiated from.
The unique identifier of the provider that was configured for this step
The unique identifier of the job that this step belongs to. Only included for async calls.
The ID of the agent that performed the step.
The name of the provider used for this step.
The name of the model used for this step.
The model endpoint url used for this step.
The context window limit configured for this step.
The number of tokens generated by the agent during this step.
The number of tokens in the prompt during this step.
The total number of tokens processed by the agent during this step.
Metadata for the agent.
The unique identifier of the transaction that processed this step.
The trace id of the agent step.
The messages generated during this step.