Download OpenAPI specification:
Cognitive Agent Long-term Intelligence, Behavioral Episodic Recall - Production Memory Framework for AI Agents
| status | string Filter by trajectory status |
| agent_id | string Filter by agent ID |
| parent_trajectory_id | string Filter by parent trajectory ID |
| limit | integer <int32> Maximum number of results |
| offset | integer <int32> Offset for pagination |
{- "total": 0,
- "trajectories": [
- {
- "_links": { },
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "metadata": { },
- "name": "string",
- "outcome": { },
- "parent_trajectory_id": "d47865db-aef0-4c15-933a-0cc936082ee8",
- "root_trajectory_id": "0f25abaa-7f0a-46dc-9cd9-abd889afef7f",
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}| agent_id | string or null <uuid> Agent assigned to this trajectory |
| description | string or null Optional description |
| metadata | object or null Additional metadata |
| name required | string Name of the trajectory |
| parent_trajectory_id | string or null <uuid> Parent trajectory ID (for sub-tasks) |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "description": "string",
- "metadata": { },
- "name": "string",
- "parent_trajectory_id": "d47865db-aef0-4c15-933a-0cc936082ee8"
}{- "_links": { },
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "metadata": { },
- "name": "string",
- "outcome": { },
- "parent_trajectory_id": "d47865db-aef0-4c15-933a-0cc936082ee8",
- "root_trajectory_id": "0f25abaa-7f0a-46dc-9cd9-abd889afef7f",
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | string <uuid> Trajectory ID |
{- "_links": { },
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "metadata": { },
- "name": "string",
- "outcome": { },
- "parent_trajectory_id": "d47865db-aef0-4c15-933a-0cc936082ee8",
- "root_trajectory_id": "0f25abaa-7f0a-46dc-9cd9-abd889afef7f",
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | string <uuid> Trajectory ID |
| description | string or null New description (if changing) |
| metadata | object or null New metadata (if changing) |
| name | string or null New name (if changing) |
null or TrajectoryStatus (string) |
{- "description": "string",
- "metadata": { },
- "name": "string",
- "status": { }
}{- "_links": { },
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "metadata": { },
- "name": "string",
- "outcome": { },
- "parent_trajectory_id": "d47865db-aef0-4c15-933a-0cc936082ee8",
- "root_trajectory_id": "0f25abaa-7f0a-46dc-9cd9-abd889afef7f",
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | string <uuid> Trajectory ID |
[- {
- "_links": { },
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "metadata": { },
- "name": "string",
- "outcome": { },
- "parent_trajectory_id": "d47865db-aef0-4c15-933a-0cc936082ee8",
- "root_trajectory_id": "0f25abaa-7f0a-46dc-9cd9-abd889afef7f",
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| id required | string <uuid> Trajectory ID |
[- {
- "_links": { },
- "checkpoint": { },
- "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "metadata": { },
- "name": "string",
- "parent_scope_id": "45ef4eca-ba00-47a4-995f-062c85c59e19",
- "purpose": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_budget": 0,
- "tokens_used": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}
]| metadata | object or null Additional metadata |
| name required | string Name of the scope |
| parent_scope_id | string or null <uuid> Parent scope (for nested scopes) |
| purpose | string or null Purpose/description |
| token_budget required | integer <int32> Token budget for this scope |
| trajectory_id required | string <uuid> Trajectory this scope belongs to |
{- "metadata": { },
- "name": "string",
- "parent_scope_id": "45ef4eca-ba00-47a4-995f-062c85c59e19",
- "purpose": "string",
- "token_budget": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}{- "_links": { },
- "checkpoint": { },
- "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "metadata": { },
- "name": "string",
- "parent_scope_id": "45ef4eca-ba00-47a4-995f-062c85c59e19",
- "purpose": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_budget": 0,
- "tokens_used": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Scope ID |
{- "_links": { },
- "checkpoint": { },
- "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "metadata": { },
- "name": "string",
- "parent_scope_id": "45ef4eca-ba00-47a4-995f-062c85c59e19",
- "purpose": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_budget": 0,
- "tokens_used": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Scope ID |
| metadata | object or null New metadata (if changing) |
| name | string or null New name (if changing) |
| purpose | string or null New purpose (if changing) |
| token_budget | integer or null <int32> New token budget (if changing) |
{- "metadata": { },
- "name": "string",
- "purpose": "string",
- "token_budget": 0
}{- "_links": { },
- "checkpoint": { },
- "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "metadata": { },
- "name": "string",
- "parent_scope_id": "45ef4eca-ba00-47a4-995f-062c85c59e19",
- "purpose": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_budget": 0,
- "tokens_used": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Scope ID |
[- {
- "_links": { },
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "artifact_id": "b7bd6bbb-c7f1-4314-8742-2aeeeece9d12",
- "artifact_type": "error_log",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "name": "string",
- "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "receipt_hash": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| id required | string <uuid> Scope ID |
| context_state required | string <byte> Serialized context state |
| recoverable required | boolean Whether this checkpoint is recoverable |
{- "context_state": "string",
- "recoverable": true
}{- "context_state": "string",
- "recoverable": true
}| id required | string <uuid> Scope ID |
{- "_links": { },
- "checkpoint": { },
- "closed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "metadata": { },
- "name": "string",
- "parent_scope_id": "45ef4eca-ba00-47a4-995f-062c85c59e19",
- "purpose": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_budget": 0,
- "tokens_used": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Scope ID |
[- {
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "metadata": { },
- "role": "user",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sequence": 0,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_count": 0,
- "tool_calls": { },
- "tool_results": { },
- "turn_id": "2df5d97e-1e68-4315-ace5-61a464d94d93"
}
]| artifact_type | string Filter by artifact type |
| trajectory_id | string Filter by trajectory ID |
| scope_id | string Filter by scope ID |
| created_after | string Filter by creation date (after) |
| created_before | string Filter by creation date (before) |
| limit | integer <int32> Maximum number of results |
| offset | integer <int32> Offset for pagination |
{- "artifacts": [
- {
- "_links": { },
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "artifact_id": "b7bd6bbb-c7f1-4314-8742-2aeeeece9d12",
- "artifact_type": "error_log",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "name": "string",
- "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "receipt_hash": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "total": 0
}| artifact_type required | string (ArtifactType) Enum: "error_log" "code_patch" "design_decision" "user_preference" "fact" "constraint" "tool_result" "intermediate_output" "custom" "code" "document" "data" "model" "config" "log" "summary" "decision" "plan" "audio" "image" "video" "transcript" "screenshot" Type of artifact |
| confidence | number or null <float> Confidence score (0.0-1.0) |
| content required | string Content of the artifact |
| extraction_method required | string (ExtractionMethod) Enum: "explicit" "inferred" "user_provided" "llm_extraction" "tool_extraction" "memory_recall" "external_api" "unknown" Extraction method used |
| metadata | object or null Additional metadata |
| name required | string Name of the artifact |
| scope_id required | string <uuid> Scope this artifact was created in |
| source_turn required | integer <int32> Source turn number |
| trajectory_id required | string <uuid> Trajectory this artifact belongs to |
required | string or string or string or object or string or string or string or string or string or object (TTL) |
{- "artifact_type": "error_log",
- "confidence": 0,
- "content": "string",
- "extraction_method": "explicit",
- "metadata": { },
- "name": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "source_turn": 0,
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "ttl": "persistent"
}{- "_links": { },
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "artifact_id": "b7bd6bbb-c7f1-4314-8742-2aeeeece9d12",
- "artifact_type": "error_log",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "name": "string",
- "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "receipt_hash": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}| entity_types required | Array of strings (EntityType) Items Enum: "trajectory" "scope" "artifact" "note" "turn" "tenant" "agent_working_set" "link" "belief" "goal" "plan" "lock" "message" "agent" "delegation" "handoff" "config" "conflict" "edge" "evolution_snapshot" "summarization_policy" "summarization_request" "tool_execution" "event" Entity types to search |
required | Array of objects (FilterExpr) Additional filters |
| limit | integer or null <int64> Maximum number of results |
| query required | string Search query text |
| use_vector_search | boolean or null Enable vector-based semantic search (default: false for backwards compat) When true, results are ranked by embedding similarity instead of keyword matching |
{- "entity_types": [
- "trajectory"
], - "filters": [
- {
- "field": "string",
- "operator": "eq",
- "value": { }
}
], - "limit": 0,
- "query": "string",
- "use_vector_search": true
}{- "results": [
- {
- "entity_type": "trajectory",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "score": 0.1,
- "snippet": "string",
- "vector_score": 0
}
], - "total": 0
}| id required | string <uuid> Artifact ID |
{- "_links": { },
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "artifact_id": "b7bd6bbb-c7f1-4314-8742-2aeeeece9d12",
- "artifact_type": "error_log",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "name": "string",
- "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "receipt_hash": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | string <uuid> Artifact ID |
null or ArtifactType (string) | |
| content | string or null New content (if changing) |
| metadata | object or null New metadata (if changing) |
| name | string or null New name (if changing) |
null or (TTL (TTL (string) or TTL (string) or TTL (string) or TTL (object) or TTL (string) or TTL (string) or TTL (string) or TTL (string) or TTL (string) or TTL (object))) |
{- "artifact_type": { },
- "content": "string",
- "metadata": { },
- "name": "string",
- "ttl": { }
}{- "_links": { },
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "artifact_id": "b7bd6bbb-c7f1-4314-8742-2aeeeece9d12",
- "artifact_type": "error_log",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "name": "string",
- "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "receipt_hash": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}| note_type | string Filter by note type |
| source_trajectory_id | string Filter by source trajectory ID |
| created_after | string Filter by creation date (after) |
| created_before | string Filter by creation date (before) |
| limit | integer <int32> Maximum number of results |
| offset | integer <int32> Offset for pagination |
{- "notes": [
- {
- "_links": { },
- "abstraction_level": "raw",
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc",
- "note_type": "convention",
- "receipt_hash": "string",
- "source_artifact_ids": [
- "string"
], - "source_note_ids": [
- "string"
], - "source_trajectory_ids": [
- "string"
], - "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "title": "string",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "total": 0
}| content required | string Content of the note |
| metadata | object or null Additional metadata |
| note_type required | string (NoteType) Enum: "convention" "strategy" "gotcha" "fact" "preference" "relationship" "procedure" "meta" "insight" "correction" "summary" Type of note |
| source_artifact_ids required | Array of strings Source artifacts |
| source_note_ids | Array of strings Source notes (for derived notes and abstraction chains) |
| source_trajectory_ids required | Array of strings Source trajectories |
| title required | string Title of the note |
required | string or string or string or object or string or string or string or string or string or object (TTL) |
{- "content": "string",
- "metadata": { },
- "note_type": "convention",
- "source_artifact_ids": [
- "string"
], - "source_note_ids": [
- "string"
], - "source_trajectory_ids": [
- "string"
], - "title": "string",
- "ttl": "persistent"
}{- "_links": { },
- "abstraction_level": "raw",
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc",
- "note_type": "convention",
- "receipt_hash": "string",
- "source_artifact_ids": [
- "string"
], - "source_note_ids": [
- "string"
], - "source_trajectory_ids": [
- "string"
], - "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "title": "string",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}| entity_types required | Array of strings (EntityType) Items Enum: "trajectory" "scope" "artifact" "note" "turn" "tenant" "agent_working_set" "link" "belief" "goal" "plan" "lock" "message" "agent" "delegation" "handoff" "config" "conflict" "edge" "evolution_snapshot" "summarization_policy" "summarization_request" "tool_execution" "event" Entity types to search |
required | Array of objects (FilterExpr) Additional filters |
| limit | integer or null <int64> Maximum number of results |
| query required | string Search query text |
| use_vector_search | boolean or null Enable vector-based semantic search (default: false for backwards compat) When true, results are ranked by embedding similarity instead of keyword matching |
{- "entity_types": [
- "trajectory"
], - "filters": [
- {
- "field": "string",
- "operator": "eq",
- "value": { }
}
], - "limit": 0,
- "query": "string",
- "use_vector_search": true
}{- "results": [
- {
- "entity_type": "trajectory",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "score": 0.1,
- "snippet": "string",
- "vector_score": 0
}
], - "total": 0
}| id required | string <uuid> Note ID |
{- "_links": { },
- "abstraction_level": "raw",
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc",
- "note_type": "convention",
- "receipt_hash": "string",
- "source_artifact_ids": [
- "string"
], - "source_note_ids": [
- "string"
], - "source_trajectory_ids": [
- "string"
], - "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "title": "string",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | string <uuid> Note ID |
| content | string or null New content (if changing) |
| metadata | object or null New metadata (if changing) |
null or NoteType (string) | |
| title | string or null New title (if changing) |
null or (TTL (TTL (string) or TTL (string) or TTL (string) or TTL (object) or TTL (string) or TTL (string) or TTL (string) or TTL (string) or TTL (string) or TTL (object))) |
{- "content": "string",
- "metadata": { },
- "note_type": { },
- "title": "string",
- "ttl": { }
}{- "_links": { },
- "abstraction_level": "raw",
- "access_count": 0,
- "accessed_at": "2019-08-24T14:15:22Z",
- "content": "string",
- "content_hash": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "embedding": { },
- "metadata": { },
- "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc",
- "note_type": "convention",
- "receipt_hash": "string",
- "source_artifact_ids": [
- "string"
], - "source_note_ids": [
- "string"
], - "source_trajectory_ids": [
- "string"
], - "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "title": "string",
- "ttl": "persistent",
- "updated_at": "2019-08-24T14:15:22Z"
}| content required | string Content of the turn |
| metadata | object or null Additional metadata |
| role required | string (TurnRole) Enum: "user" "assistant" "system" "tool" Role of the turn |
| scope_id required | string <uuid> Scope this turn belongs to |
| sequence | integer <int32> Sequence number within the scope (auto-assigned as 0 if omitted) |
| token_count | integer <int32> Token count (defaults to 0 if omitted) |
| tool_calls | object or null Tool calls (if any) |
| tool_results | object or null Tool results (if any) |
{- "content": "string",
- "metadata": { },
- "role": "user",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sequence": 0,
- "token_count": 0,
- "tool_calls": { },
- "tool_results": { }
}{- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "metadata": { },
- "role": "user",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sequence": 0,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_count": 0,
- "tool_calls": { },
- "tool_results": { },
- "turn_id": "2df5d97e-1e68-4315-ace5-61a464d94d93"
}| id required | string <uuid> Turn ID |
{- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "metadata": { },
- "role": "user",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sequence": 0,
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "token_count": 0,
- "tool_calls": { },
- "tool_results": { },
- "turn_id": "2df5d97e-1e68-4315-ace5-61a464d94d93"
}| agent_type | string Filter by agent type |
| status | string Filter by status |
| trajectory_id | string Filter by current trajectory |
| active_only | boolean Only return active agents |
{- "agents": [
- {
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "agent_type": "Tester",
- "can_delegate_to": [
- "string"
], - "capabilities": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "current_scope_id": "378c4d70-6e96-4fbe-914c-41be9d86b91a",
- "current_trajectory_id": "c1f5eb9b-8706-4841-8412-80dfc13e0a58",
- "last_heartbeat_at": "2019-08-24T14:15:22Z",
- "memory_access": {
- "read": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
], - "write": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
]
}, - "owner_principal_id": "fe39bf7b-6b2d-42fc-be7f-80505e2d7f4f",
- "reports_to": "788f594d-4490-438b-9a88-e4150fb7d6c0",
- "status": "idle",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}
], - "total": 0
}required | string or string or string or string or string or object (AgentType) |
| can_delegate_to required | Array of strings Agent types this agent can delegate to |
| capabilities required | Array of strings Capabilities this agent has |
required | object (MemoryAccessRequest) Memory access permissions |
| owner_principal_id | string or null <uuid> Optional explicit owner principal. If omitted, request principal is used. |
| reports_to | string or null <uuid> Supervisor agent (if any) |
{- "agent_type": "Tester",
- "can_delegate_to": [
- "string"
], - "capabilities": [
- "string"
], - "memory_access": {
- "read": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
], - "write": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
]
}, - "owner_principal_id": "fe39bf7b-6b2d-42fc-be7f-80505e2d7f4f",
- "reports_to": "788f594d-4490-438b-9a88-e4150fb7d6c0"
}{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "agent_type": "Tester",
- "can_delegate_to": [
- "string"
], - "capabilities": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "current_scope_id": "378c4d70-6e96-4fbe-914c-41be9d86b91a",
- "current_trajectory_id": "c1f5eb9b-8706-4841-8412-80dfc13e0a58",
- "last_heartbeat_at": "2019-08-24T14:15:22Z",
- "memory_access": {
- "read": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
], - "write": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
]
}, - "owner_principal_id": "fe39bf7b-6b2d-42fc-be7f-80505e2d7f4f",
- "reports_to": "788f594d-4490-438b-9a88-e4150fb7d6c0",
- "status": "idle",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| id required | string <uuid> Agent ID |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "agent_type": "Tester",
- "can_delegate_to": [
- "string"
], - "capabilities": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "current_scope_id": "378c4d70-6e96-4fbe-914c-41be9d86b91a",
- "current_trajectory_id": "c1f5eb9b-8706-4841-8412-80dfc13e0a58",
- "last_heartbeat_at": "2019-08-24T14:15:22Z",
- "memory_access": {
- "read": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
], - "write": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
]
}, - "owner_principal_id": "fe39bf7b-6b2d-42fc-be7f-80505e2d7f4f",
- "reports_to": "788f594d-4490-438b-9a88-e4150fb7d6c0",
- "status": "idle",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| id required | string <uuid> Agent ID |
| capabilities | Array of strings or null New capabilities (if changing) |
| current_scope_id | string or null <uuid> New current scope (if changing) |
| current_trajectory_id | string or null <uuid> New current trajectory (if changing) |
null or MemoryAccessRequest (object) | |
null or AgentStatus (string) |
{- "capabilities": [
- "string"
], - "current_scope_id": "378c4d70-6e96-4fbe-914c-41be9d86b91a",
- "current_trajectory_id": "c1f5eb9b-8706-4841-8412-80dfc13e0a58",
- "memory_access": { },
- "status": { }
}{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "agent_type": "Tester",
- "can_delegate_to": [
- "string"
], - "capabilities": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "current_scope_id": "378c4d70-6e96-4fbe-914c-41be9d86b91a",
- "current_trajectory_id": "c1f5eb9b-8706-4841-8412-80dfc13e0a58",
- "last_heartbeat_at": "2019-08-24T14:15:22Z",
- "memory_access": {
- "read": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
], - "write": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
]
}, - "owner_principal_id": "fe39bf7b-6b2d-42fc-be7f-80505e2d7f4f",
- "reports_to": "788f594d-4490-438b-9a88-e4150fb7d6c0",
- "status": "idle",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| id required | string <uuid> Agent ID |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "agent_type": "Tester",
- "can_delegate_to": [
- "string"
], - "capabilities": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "current_scope_id": "378c4d70-6e96-4fbe-914c-41be9d86b91a",
- "current_trajectory_id": "c1f5eb9b-8706-4841-8412-80dfc13e0a58",
- "last_heartbeat_at": "2019-08-24T14:15:22Z",
- "memory_access": {
- "read": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
], - "write": [
- {
- "filter": "string",
- "memory_type": "artifact",
- "scope": "string"
}
]
}, - "owner_principal_id": "fe39bf7b-6b2d-42fc-be7f-80505e2d7f4f",
- "reports_to": "788f594d-4490-438b-9a88-e4150fb7d6c0",
- "status": "idle",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}{- "locks": [
- {
- "acquired_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "holder_agent_id": "7d3e49bb-e0f5-470b-bcaa-ee120b9f574d",
- "lock_id": "c7590aa3-358c-4ba6-a3b5-87d5f487fd16",
- "mode": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_type": "trajectory",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}
], - "total": 0
}| holder_agent_id required | string <uuid> Agent requesting the lock |
| mode required | string Lock mode (Exclusive or Shared) |
| resource_id required | string <uuid> ID of the resource to lock |
| resource_type required | string (ResourceType) Enum: "trajectory" "scope" "artifact" "note" "agent" Type of resource to lock |
| timeout_ms required | integer <int64> Lock timeout in milliseconds |
{- "holder_agent_id": "7d3e49bb-e0f5-470b-bcaa-ee120b9f574d",
- "mode": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_type": "trajectory",
- "timeout_ms": 0
}{- "acquired_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "holder_agent_id": "7d3e49bb-e0f5-470b-bcaa-ee120b9f574d",
- "lock_id": "c7590aa3-358c-4ba6-a3b5-87d5f487fd16",
- "mode": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_type": "trajectory",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| id required | string <uuid> Lock ID |
{- "acquired_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "holder_agent_id": "7d3e49bb-e0f5-470b-bcaa-ee120b9f574d",
- "lock_id": "c7590aa3-358c-4ba6-a3b5-87d5f487fd16",
- "mode": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_type": "trajectory",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| id required | string <uuid> Lock ID |
| additional_ms required | integer <int64> Additional time in milliseconds |
{- "additional_ms": 0
}{- "acquired_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "holder_agent_id": "7d3e49bb-e0f5-470b-bcaa-ee120b9f574d",
- "lock_id": "c7590aa3-358c-4ba6-a3b5-87d5f487fd16",
- "mode": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "resource_type": "trajectory",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| id required | string <uuid> Lock ID |
| releasing_agent_id required | string <uuid> Agent releasing the lock (must be the holder) |
{- "releasing_agent_id": "6364ddb7-59d4-4a83-bd2a-f7236f9c2286"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}| message_type | string Filter by message type |
| from_agent_id | string Filter by sender agent |
| to_agent_id | string Filter by recipient agent |
| to_agent_type | string Filter by recipient agent type |
| trajectory_id | string Filter by trajectory |
| priority | string Filter by priority |
| undelivered_only | boolean Only return undelivered messages |
| unacknowledged_only | boolean Only return unacknowledged messages |
| limit | integer <int32> Maximum number of results |
| offset | integer <int32> Offset for pagination |
{- "messages": [
- {
- "acknowledged_at": "2019-08-24T14:15:22Z",
- "artifact_ids": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "delivered_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "message_type": "task_delegation",
- "payload": "string",
- "priority": "low",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sender_id": "3194e023-c19f-4a42-9172-9e18d68e3a3a",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "to": { },
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}
], - "total": 0
}| artifact_ids required | Array of strings Related artifacts (if any) |
| expires_at | string or null <date-time> When the message expires (optional) |
| from_agent_id required | string <uuid> Agent sending the message |
| message_type required | string (MessageType) Enum: "task_delegation" "task_result" "context_request" "context_share" "coordination_signal" "handoff" "interrupt" "heartbeat" Type of message |
| payload required | string Message payload (JSON serialized) |
| priority required | string (MessagePriority) Enum: "low" "normal" "high" "critical" Message priority |
| scope_id | string or null <uuid> Related scope (if any) |
null or (AgentTarget (AgentTarget (object) or AgentTarget (object))) | |
| trajectory_id | string or null <uuid> Related trajectory (if any) |
{- "artifact_ids": [
- "string"
], - "expires_at": "2019-08-24T14:15:22Z",
- "from_agent_id": "5263c7c6-e676-46d8-a6d1-3555c9c1605e",
- "message_type": "task_delegation",
- "payload": "string",
- "priority": "low",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "to": { },
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}{- "acknowledged_at": "2019-08-24T14:15:22Z",
- "artifact_ids": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "delivered_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "message_type": "task_delegation",
- "payload": "string",
- "priority": "low",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sender_id": "3194e023-c19f-4a42-9172-9e18d68e3a3a",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "to": { },
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Message ID |
{- "acknowledged_at": "2019-08-24T14:15:22Z",
- "artifact_ids": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "delivered_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
- "message_type": "task_delegation",
- "payload": "string",
- "priority": "low",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "sender_id": "3194e023-c19f-4a42-9172-9e18d68e3a3a",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "to": { },
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Message ID |
| agent_id required | string <uuid> The agent performing the action (must be the message recipient) |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}| context | object or null Additional context |
| expected_completion | string or null <date-time> Expected completion time |
| from_agent_id required | string <uuid> Agent delegating the task |
| scope_id required | string <uuid> Scope for the delegated task |
| task_description required | string Task description |
| to_agent_id required | string <uuid> Agent receiving the delegation |
| trajectory_id required | string <uuid> Trajectory for the delegated task |
{- "context": { },
- "expected_completion": "2019-08-24T14:15:22Z",
- "from_agent_id": "5263c7c6-e676-46d8-a6d1-3555c9c1605e",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "task_description": "string",
- "to_agent_id": "59132b1d-373f-4e40-ba51-efb09b82ca7a",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}{- "accepted_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "context": { },
- "created_at": "2019-08-24T14:15:22Z",
- "delegatee_id": "4cb98d17-4291-4316-b7cc-d10cdf9c4d72",
- "delegation_id": "4cff8b0a-bdd8-4ae9-8b8e-6f3c0f89b0a7",
- "delegator_id": "a216129c-840c-4df6-a346-870cfb194797",
- "expected_completion": "2019-08-24T14:15:22Z",
- "result": { },
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "status": "pending",
- "task_description": "string",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Delegation ID |
{- "accepted_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "context": { },
- "created_at": "2019-08-24T14:15:22Z",
- "delegatee_id": "4cb98d17-4291-4316-b7cc-d10cdf9c4d72",
- "delegation_id": "4cff8b0a-bdd8-4ae9-8b8e-6f3c0f89b0a7",
- "delegator_id": "a216129c-840c-4df6-a346-870cfb194797",
- "expected_completion": "2019-08-24T14:15:22Z",
- "result": { },
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "status": "pending",
- "task_description": "string",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Delegation ID |
| accepting_agent_id required | string <uuid> Agent accepting the delegation |
{- "accepting_agent_id": "d9e821c5-f88a-4dba-8a51-7c82e765fb7a"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}| id required | string <uuid> Delegation ID |
| completing_agent_id required | string <uuid> Agent completing the delegation (must be the delegatee) |
required | object (DelegationResultResponse) Result of the delegation |
{- "completing_agent_id": "a9798242-682a-4858-aa27-afedd7b81e30",
- "result": {
- "artifacts": [
- "string"
], - "error": "string",
- "output": "string",
- "status": "success"
}
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}| id required | string <uuid> Delegation ID |
| reason required | string Reason for rejection |
| rejecting_agent_id required | string <uuid> Agent rejecting the delegation |
{- "reason": "string",
- "rejecting_agent_id": "9c6e9ffc-c7e7-4292-8a96-1d6ab9126e18"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}| context_snapshot required | string <byte> Context to transfer |
| from_agent_id required | string <uuid> Agent initiating the handoff |
| reason required | string Reason for handoff |
| scope_id required | string <uuid> Current scope |
| to_agent_id required | string <uuid> Agent receiving the handoff |
| trajectory_id required | string <uuid> Trajectory being handed off |
{- "context_snapshot": "string",
- "from_agent_id": "5263c7c6-e676-46d8-a6d1-3555c9c1605e",
- "reason": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "to_agent_id": "59132b1d-373f-4e40-ba51-efb09b82ca7a",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}{- "accepted_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "context_snapshot": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "from_agent_id": "5263c7c6-e676-46d8-a6d1-3555c9c1605e",
- "handoff_id": "141e6d39-e6f2-4d75-8027-a089e03fcad6",
- "reason": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "status": "initiated",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "to_agent_id": "59132b1d-373f-4e40-ba51-efb09b82ca7a",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Handoff ID |
{- "accepted_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "context_snapshot": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "from_agent_id": "5263c7c6-e676-46d8-a6d1-3555c9c1605e",
- "handoff_id": "141e6d39-e6f2-4d75-8027-a089e03fcad6",
- "reason": "string",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "status": "initiated",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "to_agent_id": "59132b1d-373f-4e40-ba51-efb09b82ca7a",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848"
}| id required | string <uuid> Handoff ID |
| accepting_agent_id required | string <uuid> Agent accepting the handoff |
{- "accepting_agent_id": "d9e821c5-f88a-4dba-8a51-7c82e765fb7a"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}| entity_types required | Array of strings (EntityType) Items Enum: "trajectory" "scope" "artifact" "note" "turn" "tenant" "agent_working_set" "link" "belief" "goal" "plan" "lock" "message" "agent" "delegation" "handoff" "config" "conflict" "edge" "evolution_snapshot" "summarization_policy" "summarization_request" "tool_execution" "event" Entity types to search |
required | Array of objects (FilterExpr) Additional filters |
| limit | integer or null <int64> Maximum number of results |
| query required | string Search query text |
| use_vector_search | boolean or null Enable vector-based semantic search (default: false for backwards compat) When true, results are ranked by embedding similarity instead of keyword matching |
{- "entity_types": [
- "trajectory"
], - "filters": [
- {
- "field": "string",
- "operator": "eq",
- "value": { }
}
], - "limit": 0,
- "query": "string",
- "use_vector_search": true
}{- "results": [
- {
- "entity_type": "trajectory",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "score": 0.1,
- "snippet": "string",
- "vector_score": 0
}
], - "total": 0
}| cstate_toml required | string cstate.toml contents |
| markdown required | Array of strings Markdown prompt files (each part content) |
{- "ast": { },
- "compiled": { },
- "errors": [
- {
- "column": 0,
- "file": "string",
- "line": 0,
- "message": "string"
}
], - "pack_source": "string",
- "success": true
}On success the response's ast field contains the parsed Abstract Syntax Tree (AST) serialized as JSON.
On failure the response includes one or more ParseErrorResponse entries with error messages (line and column are set to 0 for parse errors produced by the internal pack parser).
// Prefer using the HTTP endpoint in integration tests; for local parsing the helper can be used:
let source = "# My Pack\n...";
let ast = cellstate_api::utils::parse_markdown_source(source).expect("should parse");
let ast_json = serde_json::to_value(&ast).unwrap();
assert!(ast_json.is_object());
| source required | string pack source code |
{- "source": "string"
}{- "ast": { },
- "errors": [
- {
- "column": 0,
- "line": 0,
- "message": "string"
}
], - "valid": true
}Validates that the provided request source is not empty; if empty, the request is rejected with a missing-field error. On successful parsing the response contains valid: true and ast set to the serialized AST. On parse failure the response contains valid: false and a single ParseErrorResponse with line: 0, column: 0, and message set to the parser error string.
use axum::Json;
use cellstate_api::ValidatePackRequest;
// Construct a request with pack source and send it to the handler.
let req = ValidatePackRequest { source: "# Example Pack".into() };
// Calling the handler requires a `State<DbClient>`; in integration tests provide a test DbClient.
// let response = tokio::runtime::Runtime::new().unwrap().block_on(validate_pack(state, Json(req)));
| source required | string pack source code |
{- "source": "string"
}{- "ast": { },
- "errors": [
- {
- "column": 0,
- "line": 0,
- "message": "string"
}
], - "valid": true
}| config required | object Configuration as JSON |
{- "config": { }
}{- "config": { },
- "errors": [
- "string"
], - "valid": true
}| config required | object Configuration as JSON to validate |
{- "config": { }
}{- "config": { },
- "errors": [
- "string"
], - "valid": true
}| pack_name required | string Pack name |
{- "deployments": [
- {
- "activated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",
- "error_count": 0,
- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string",
- "request_count": 0,
- "rolled_back_at": "2019-08-24T14:15:22Z",
- "rollout_percentage": 0,
- "status": "Pending",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "version": 0
}
], - "total": 0
}| error_threshold | number <double> |
null or DeploymentLaunchConfig (object) | |
| pack_name required | string |
{- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string"
}{- "deployment": {
- "activated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",
- "error_count": 0,
- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string",
- "request_count": 0,
- "rolled_back_at": "2019-08-24T14:15:22Z",
- "rollout_percentage": 0,
- "status": "Pending",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "version": 0
}
}| pack_name required | string |
{- "pack_name": "string"
}{- "deployment": {
- "activated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",
- "error_count": 0,
- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string",
- "request_count": 0,
- "rolled_back_at": "2019-08-24T14:15:22Z",
- "rollout_percentage": 0,
- "status": "Pending",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "version": 0
}
}| id required | string Deployment ID |
{- "deployment": {
- "activated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",
- "error_count": 0,
- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string",
- "request_count": 0,
- "rolled_back_at": "2019-08-24T14:15:22Z",
- "rollout_percentage": 0,
- "status": "Pending",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "version": 0
}
}| id required | string Deployment ID |
| rollout_percentage required | integer <int32> >= 0 |
{- "rollout_percentage": 0
}{- "deployment": {
- "activated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",
- "error_count": 0,
- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string",
- "request_count": 0,
- "rolled_back_at": "2019-08-24T14:15:22Z",
- "rollout_percentage": 0,
- "status": "Pending",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "version": 0
}
}| id required | string Deployment ID |
| rollout_percentage required | integer <int32> >= 0 |
{- "rollout_percentage": 0
}{- "deployment": {
- "activated_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6",
- "error_count": 0,
- "error_threshold": 0.1,
- "launch_config": { },
- "pack_name": "string",
- "request_count": 0,
- "rolled_back_at": "2019-08-24T14:15:22Z",
- "rollout_percentage": 0,
- "status": "Pending",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "version": 0
}
}| is_active | boolean Filter by active status |
| name | string Filter by name (substring match) |
| limit | integer <int32> Maximum number of results |
| offset | integer <int32> Offset for pagination |
{- "api_keys": [
- {
- "api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "key_prefix": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "scopes": [
- "string"
], - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}
], - "total": 0
}| expires_at | string or null <date-time> |
| name required | string |
| scopes | Array of strings or null |
{- "expires_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "scopes": [
- "string"
]
}{- "api_key": {
- "api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "key_prefix": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "scopes": [
- "string"
], - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}, - "key": "string"
}| tenant_id required | string <uuid> Tenant ID |
| is_active | boolean Filter by active status |
| name | string Filter by name (substring match) |
| owner_user_id | string Filter by owner user ID |
| limit | integer <int32> Maximum number of results |
| offset | integer <int32> Offset for pagination |
{- "api_keys": [
- {
- "api_key_id": "b0dd218e-3bcf-4bdb-a1e3-0689d60a8afd",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z",
- "is_active": true,
- "key_prefix": "string",
- "last_used_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "scopes": [
- "string"
], - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}
], - "total": 0
}| tenant_id required | string <uuid> Tenant ID |
| id required | string <uuid> API key ID |
{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}{- "api_key": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "email": "string",
- "first_name": "string",
- "id": "string",
- "last_name": "string",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0"
}| code | string OAuth authorization code |
| state | string OAuth state token |
| error | string Provider-side OAuth error |
| error_description | string Provider-side OAuth error description |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "expires_at": "2019-08-24T14:15:22Z",
- "provider": "string",
- "scopes": [
- "string"
], - "stored_at": "2019-08-24T14:15:22Z",
- "token_type": "string"
}| agent_id | string or null <uuid> |
| allow_signup | boolean or null |
| provider required | string |
| redirect_uri | string or null |
| scopes | Array of strings or null |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "allow_signup": true,
- "provider": "string",
- "redirect_uri": "string",
- "scopes": [
- "string"
]
}{- "authorization_url": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "pkce_method": "string",
- "provider": "string",
- "state": "string"
}| provider | string Optional provider filter |
| agent_id | string <uuid> Optional agent filter |
{- "tokens": [
- {
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "expires_at": "2019-08-24T14:15:22Z",
- "is_expired": true,
- "provider": "string",
- "scopes": [
- "string"
], - "stored_at": "2019-08-24T14:15:22Z",
- "token_type": "string"
}
], - "total": 0
}| access_token required | string |
| agent_id | string or null <uuid> |
| expires_at | string or null <date-time> |
| provider required | string |
| refresh_token | string or null |
| scopes | Array of strings or null |
| token_type | string or null |
{- "access_token": "string",
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "expires_at": "2019-08-24T14:15:22Z",
- "provider": "string",
- "refresh_token": "string",
- "scopes": [
- "string"
], - "token_type": "string"
}{- "token": {
- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "expires_at": "2019-08-24T14:15:22Z",
- "is_expired": true,
- "provider": "string",
- "scopes": [
- "string"
], - "stored_at": "2019-08-24T14:15:22Z",
- "token_type": "string"
}
}| agent_id | string or null <uuid> |
| provider required | string |
{- "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
- "provider": "string"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}SECURITY: Returns only tenants where the caller has membership. If no membership rows are present (for example API-key only contexts), falls back to the authenticated current tenant.
{- "tenants": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "domain": "string",
- "name": "string",
- "settings": { },
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "workos_organization_id": "string"
}
]
}SECURITY: Users can only access their own tenant. This prevents information disclosure about other tenants' existence and details.
| id required | string <uuid> Tenant ID |
{- "created_at": "2019-08-24T14:15:22Z",
- "domain": "string",
- "name": "string",
- "settings": { },
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "workos_organization_id": "string"
}SECURITY: Users can only update their own tenant.
| id required | string <uuid> Tenant ID |
| domain | string or null Updated email domain |
| name | string or null Updated tenant name |
| settings | object or null Updated tenant settings |
null or TenantStatus (string) |
{- "domain": "string",
- "name": "string",
- "settings": { },
- "status": { }
}{- "created_at": "2019-08-24T14:15:22Z",
- "domain": "string",
- "name": "string",
- "settings": { },
- "status": "active",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "workos_organization_id": "string"
}{- "snapshots": [
- {
- "config_hash": "string",
- "config_source": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "metadata": { },
- "metrics": { },
- "name": "string",
- "phase": "online",
- "snapshot_id": "163831af-8c1b-4992-a9cf-88c6306604c0"
}
], - "total": 0
}| config_source required | string |
| metadata | object or null |
null or EvolutionMetrics (object) | |
| name required | string |
| phase required | string (EvolutionPhase) Enum: "online" "frozen" "evolving" Phase of pack config evolution cycle. |
{- "config_source": "string",
- "metadata": { },
- "metrics": { },
- "name": "string",
- "phase": "online"
}{- "config_hash": "string",
- "config_source": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "metadata": { },
- "metrics": { },
- "name": "string",
- "phase": "online",
- "snapshot_id": "163831af-8c1b-4992-a9cf-88c6306604c0"
}| kind required | integer <int32> >= 0 Event kind code (u16, e.g. 0x1001 = 4097 for TRAJECTORY_CREATED) |
| min_depth | integer <int32> >= 0 Minimum depth (default: 0) |
| max_depth | integer <int32> >= 0 Maximum depth (default: 999) |
| limit | integer >= 0 Maximum number of events to return (default: 100) |
{- "count": 0,
- "events": [
- {
- "hash_chain": { },
- "header": {
- "causality": { },
- "correlation_id": "807686c4-116c-44b3-a01c-b14b50e31bcc",
- "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
- "event_kind": 0,
- "flags": 255,
- "payload_size": 0,
- "position": {
- "depth": 0,
- "lane": 0,
- "sequence": 0
}, - "random_seed": 0,
- "timestamp": 0
}, - "payload": null,
- "category": "string"
}
]
}| id required | string Event ID (UUID) |
{- "event": {
- "hash_chain": { },
- "header": {
- "causality": { },
- "correlation_id": "807686c4-116c-44b3-a01c-b14b50e31bcc",
- "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
- "event_kind": 0,
- "flags": 255,
- "payload_size": 0,
- "position": {
- "depth": 0,
- "lane": 0,
- "sequence": 0
}, - "random_seed": 0,
- "timestamp": 0
}, - "payload": null,
- "category": "string"
}
}| id required | string Event ID (UUID) |
| limit | integer >= 0 Maximum number of ancestors to return (default: 100) |
{- "count": 0,
- "events": [
- {
- "hash_chain": { },
- "header": {
- "causality": { },
- "correlation_id": "807686c4-116c-44b3-a01c-b14b50e31bcc",
- "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
- "event_kind": 0,
- "flags": 255,
- "payload_size": 0,
- "position": {
- "depth": 0,
- "lane": 0,
- "sequence": 0
}, - "random_seed": 0,
- "timestamp": 0
}, - "payload": null,
- "category": "string"
}
]
}| id required | string Event ID (UUID) |
| limit | integer >= 0 Maximum number of descendants to return (default: 100) |
{- "count": 0,
- "events": [
- {
- "hash_chain": { },
- "header": {
- "causality": { },
- "correlation_id": "807686c4-116c-44b3-a01c-b14b50e31bcc",
- "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
- "event_kind": 0,
- "flags": 255,
- "payload_size": 0,
- "position": {
- "depth": 0,
- "lane": 0,
- "sequence": 0
}, - "random_seed": 0,
- "timestamp": 0
}, - "payload": null,
- "category": "string"
}
]
}Reads the event to determine its parent (via correlation_id and position), then walks descendants of the parent to find siblings at the same depth.
| id required | string Event ID (UUID) |
{- "count": 0,
- "events": [
- {
- "hash_chain": { },
- "header": {
- "causality": { },
- "correlation_id": "807686c4-116c-44b3-a01c-b14b50e31bcc",
- "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",
- "event_kind": 0,
- "flags": 255,
- "payload_size": 0,
- "position": {
- "depth": 0,
- "lane": 0,
- "sequence": 0
}, - "random_seed": 0,
- "timestamp": 0
}, - "payload": null,
- "category": "string"
}
]
}| edge_type required | string (EdgeType) Enum: "supports" "contradicts" "supersedes" "derived_from" "relates_to" "temporal" "causal" "synthesized_from" "grouped" "compared" Type of edge |
| metadata | any Optional metadata |
required | Array of objects (EdgeParticipantRequest) Edge participants (entities involved) |
required | object (ProvenanceRequest) Provenance information |
| trajectory_id | string or null <uuid> Optional trajectory ID for context |
| weight | number or null <float> Optional weight/strength of relationship [0.0, 1.0] |
{- "edge_type": "supports",
- "metadata": null,
- "participants": [
- {
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "entity_type": "trajectory",
- "role": "string"
}
], - "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}{- "created_at": "2019-08-24T14:15:22Z",
- "edge_id": "b311b798-212e-414c-ba53-c572923101d4",
- "edge_type": "supports",
- "metadata": { },
- "participants": [
- {
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "entity_type": "trajectory",
- "role": "string"
}
], - "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}| edge_type required | string (EdgeType) Enum: "supports" "contradicts" "supersedes" "derived_from" "relates_to" "temporal" "causal" "synthesized_from" "grouped" "compared" Type of edge |
| metadata | any Optional metadata |
required | Array of objects (EdgeParticipantRequest) Edge participants (entities involved) |
required | object (ProvenanceRequest) Provenance information |
| trajectory_id | string or null <uuid> Optional trajectory ID for context |
| weight | number or null <float> Optional weight/strength of relationship [0.0, 1.0] |
[- {
- "edge_type": "supports",
- "metadata": null,
- "participants": [
- {
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "entity_type": "trajectory",
- "role": "string"
}
], - "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}
]{- "edges": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "edge_id": "b311b798-212e-414c-ba53-c572923101d4",
- "edge_type": "supports",
- "metadata": { },
- "participants": [
- {
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "entity_type": "trajectory",
- "role": "string"
}
], - "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}
]
}| entity_id required | string Entity ID to find edges for |
{- "edges": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "edge_id": "b311b798-212e-414c-ba53-c572923101d4",
- "edge_type": "supports",
- "metadata": { },
- "participants": [
- {
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "entity_type": "trajectory",
- "role": "string"
}
], - "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}
]
}| start_id required | string Start entity ID |
| max_depth | integer <int32> Maximum traversal depth |
| rel_types | Array of strings Optional relation type filter |
| limit | integer <int64> Optional maximum returned rows |
{- "links": [
- {
- "depth": 0,
- "dst_id": "0c1826d2-037e-4c63-abbe-e4efc3726f63",
- "dst_type": "trajectory",
- "edge_id": "b311b798-212e-414c-ba53-c572923101d4",
- "props": { },
- "rel_type": "supports",
- "src_id": "ca611de0-a436-493d-ac6a-d8dbbe49cf5d",
- "src_type": "trajectory",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}
]
}| id required | string Edge ID |
{- "created_at": "2019-08-24T14:15:22Z",
- "edge_id": "b311b798-212e-414c-ba53-c572923101d4",
- "edge_type": "supports",
- "metadata": { },
- "participants": [
- {
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "entity_type": "trajectory",
- "role": "string"
}
], - "provenance": {
- "confidence": 0,
- "extraction_method": "explicit",
- "source_turn": 0
}, - "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "weight": 0
}| create_edges required | boolean Whether to create SynthesizedFrom edges |
| max_sources required | integer <int32> Maximum sources to summarize at once |
| metadata | any Optional metadata |
| name required | string Policy name |
| source_level required | string (AbstractionLevel) Enum: "raw" "summary" "principle" Source abstraction level (e.g., Raw/L0) |
| target_level required | string (AbstractionLevel) Enum: "raw" "summary" "principle" Target abstraction level (e.g., Summary/L1) |
| trajectory_id | string or null <uuid> Optional trajectory ID to scope this policy |
required | Array of objects or strings or objects or objects or strings (SummarizationTrigger) Triggers that fire this policy |
{- "create_edges": true,
- "max_sources": 0,
- "metadata": null,
- "name": "string",
- "source_level": "raw",
- "target_level": "raw",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "triggers": [
- {
- "dosage_threshold": {
- "percent": 0
}
}
]
}{- "create_edges": true,
- "created_at": "2019-08-24T14:15:22Z",
- "max_sources": 0,
- "metadata": { },
- "name": "string",
- "source_level": "raw",
- "summarization_policy_id": "d5e4506d-9171-4b67-8185-83ba27dceeb0",
- "target_level": "raw",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "triggers": [
- {
- "dosage_threshold": {
- "percent": 0
}
}
]
}| id required | string Policy ID |
{- "create_edges": true,
- "created_at": "2019-08-24T14:15:22Z",
- "max_sources": 0,
- "metadata": { },
- "name": "string",
- "source_level": "raw",
- "summarization_policy_id": "d5e4506d-9171-4b67-8185-83ba27dceeb0",
- "target_level": "raw",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "triggers": [
- {
- "dosage_threshold": {
- "percent": 0
}
}
]
}| id required | string Trajectory ID |
{- "policies": [
- {
- "create_edges": true,
- "created_at": "2019-08-24T14:15:22Z",
- "max_sources": 0,
- "metadata": { },
- "name": "string",
- "source_level": "raw",
- "summarization_policy_id": "d5e4506d-9171-4b67-8185-83ba27dceeb0",
- "target_level": "raw",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "triggers": [
- {
- "dosage_threshold": {
- "percent": 0
}
}
]
}
]
}| status | string Filter by status (pending, in_progress, completed, failed) |
| scope_id | string Filter by scope ID |
| summarization_policy_id | string Filter by policy ID |
| limit | integer <int64> Max results (default 50) |
| offset | integer <int64> Offset for pagination |
{- "requests": [
- {
- "completed_at": "2019-08-24T14:15:22Z",
- "create_edges": true,
- "max_sources": 0,
- "metadata": { },
- "requested_at": "2019-08-24T14:15:22Z",
- "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "source_level": "raw",
- "status": "pending",
- "summarization_policy_id": "d5e4506d-9171-4b67-8185-83ba27dceeb0",
- "summarization_request_id": "6d29a8f7-a2a8-4c5a-9e9b-61c3fe12a8ee",
- "target_level": "raw",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "trigger": {
- "dosage_threshold": {
- "percent": 0
}
}
}
]
}| id required | string Summarization Request ID |
{- "completed_at": "2019-08-24T14:15:22Z",
- "create_edges": true,
- "max_sources": 0,
- "metadata": { },
- "requested_at": "2019-08-24T14:15:22Z",
- "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
- "scope_id": "5d3fe357-12dd-4f62-b004-6d1fb3b8454f",
- "source_level": "raw",
- "status": "pending",
- "summarization_policy_id": "d5e4506d-9171-4b67-8185-83ba27dceeb0",
- "summarization_request_id": "6d29a8f7-a2a8-4c5a-9e9b-61c3fe12a8ee",
- "target_level": "raw",
- "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",
- "trajectory_id": "60bbb3ae-5c7a-4eeb-b50a-0e5f76826848",
- "trigger": {
- "dosage_threshold": {
- "percent": 0
}
}
}| id required | string Summarization Request ID |
| status required | string (SummarizationRequestStatus) Enum: "pending" "in_progress" "completed" "failed" New status for the request |
{- "status": "pending"
}{- "code": "UNAUTHORIZED",
- "details": { },
- "message": "string"
}