Retrieve Trace For Step
client.steps.trace.retrieve(stringstepID, RequestOptionsoptions?): ProviderTrace { request_json, response_json, id, 5 more } | null
/v1/steps/{step_id}/trace
Retrieve Trace For Step
Parameters
Returns
Retrieve Trace For Step
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
const providerTrace = await client.steps.trace.retrieve('step-123e4567-e89b-42d3-8456-426614174000');
console.log(providerTrace.id);
{
"request_json": {
"foo": "bar"
},
"response_json": {
"foo": "bar"
},
"id": "provider_trace-123e4567-e89b-12d3-a456-426614174000",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"last_updated_by_id": "last_updated_by_id",
"step_id": "step_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"request_json": {
"foo": "bar"
},
"response_json": {
"foo": "bar"
},
"id": "provider_trace-123e4567-e89b-12d3-a456-426614174000",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"last_updated_by_id": "last_updated_by_id",
"step_id": "step_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}