Skip to main content

Get task run metrics

GET 

/api/tasks/:task_id/run-metrics

Returns total run time, agent time, input and output usage and cost for the task and all of its descendants, plus the model that ran and the peak memory, peak CPU and CPU time of the task's own sessions. Works for unfinished tasks too.

Request​

Responses​

OK