Letta · Schema
StepMetrics
AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The id of the step this metric belongs to (matches steps.id). |
| provider_id | object | The unique identifier of the provider. |
| run_id | object | The unique identifier of the run. |
| agent_id | object | The unique identifier of the agent. |
| step_start_ns | object | The timestamp of the start of the step in nanoseconds. |
| llm_request_start_ns | object | The timestamp of the start of the llm request in nanoseconds. |
| llm_request_ns | object | Time spent on LLM requests in nanoseconds. |
| tool_execution_ns | object | Time spent on tool execution in nanoseconds. |
| step_ns | object | Total time for the step in nanoseconds. |
| base_template_id | object | The base template ID that the step belongs to (cloud only). |
| template_id | object | The template ID that the step belongs to (cloud only). |
| project_id | object | The project that the step belongs to (cloud only). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/StepMetrics",
"title": "StepMetrics",
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "The id of the step this metric belongs to (matches steps.id)."
},
"provider_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Provider Id",
"description": "The unique identifier of the provider."
},
"run_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Run Id",
"description": "The unique identifier of the run."
},
"agent_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Id",
"description": "The unique identifier of the agent."
},
"step_start_ns": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Step Start Ns",
"description": "The timestamp of the start of the step in nanoseconds."
},
"llm_request_start_ns": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Llm Request Start Ns",
"description": "The timestamp of the start of the llm request in nanoseconds."
},
"llm_request_ns": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Llm Request Ns",
"description": "Time spent on LLM requests in nanoseconds."
},
"tool_execution_ns": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Tool Execution Ns",
"description": "Time spent on tool execution in nanoseconds."
},
"step_ns": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Step Ns",
"description": "Total time for the step in nanoseconds."
},
"base_template_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Base Template Id",
"description": "The base template ID that the step belongs to (cloud only)."
},
"template_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Template Id",
"description": "The template ID that the step belongs to (cloud only)."
},
"project_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Project Id",
"description": "The project that the step belongs to (cloud only)."
}
},
"additionalProperties": false,
"type": "object",
"required": [
"id"
]
}