Skip to content
Discord

Metrics

Retrieve Metrics For Step
client.steps.metrics.retrieve(stringstepID, RequestOptionsoptions?): MetricRetrieveResponse { id, agent_id, base_template_id, 9 more }
GET/v1/steps/{step_id}/metrics
ModelsExpand Collapse
MetricRetrieveResponse { id, agent_id, base_template_id, 9 more }
id: string

The id of the step this metric belongs to (matches steps.id).

agent_id?: string | null

The unique identifier of the agent.

base_template_id?: string | null

The base template ID that the step belongs to (cloud only).

llm_request_ns?: number | null

Time spent on LLM requests in nanoseconds.

llm_request_start_ns?: number | null

The timestamp of the start of the llm request in nanoseconds.

project_id?: string | null

The project that the step belongs to (cloud only).

provider_id?: string | null

The unique identifier of the provider.

run_id?: string | null

The unique identifier of the run.

step_ns?: number | null

Total time for the step in nanoseconds.

step_start_ns?: number | null

The timestamp of the start of the step in nanoseconds.

template_id?: string | null

The template ID that the step belongs to (cloud only).

tool_execution_ns?: number | null

Time spent on tool execution in nanoseconds.