List objective events
$ cadenya objectives list-events
GET/v1/objectives/{objectiveId}/events
List objective events
cadenya objectives list-events \
--api-key 'My API Key' \
--objective-id objectiveId{
"items": [
{
"data": {
"assistantMessage": {
"content": "content",
"toolCalls": [
{
"arguments": "arguments",
"functionName": "functionName",
"tool": {
"agent": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"cadenyaProvidedTool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"tool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
}
}
}
]
},
"contextWindowCompacted": {
"messagesCompacted": 0,
"newContextWindow": {
"completionTokens": 0,
"objectiveId": "objectiveId",
"previousWindowContinueInstructions": "previousWindowContinueInstructions",
"promptTokens": 0,
"sequence": 0
},
"strategies": [
"string"
],
"summary": "summary"
},
"error": {
"message": "message",
"type": "type"
},
"subObjectiveCreated": {
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
}
},
"toolApprovalRequested": {
"toolCallId": "toolCallId"
},
"toolApproved": {
"toolCallId": "toolCallId"
},
"toolCalled": {
"toolCallId": "toolCallId"
},
"toolDenied": {
"memo": "memo",
"toolCallId": "toolCallId"
},
"toolError": {
"message": "message",
"toolCallId": "toolCallId"
},
"toolResult": {
"content": "content",
"toolCallId": "toolCallId"
},
"type": "type",
"userMessage": {
"content": "content"
}
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"contextWindowId": "contextWindowId",
"info": {
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
},
"objective": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
}
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"data": {
"assistantMessage": {
"content": "content",
"toolCalls": [
{
"arguments": "arguments",
"functionName": "functionName",
"tool": {
"agent": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"cadenyaProvidedTool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"tool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
}
}
}
]
},
"contextWindowCompacted": {
"messagesCompacted": 0,
"newContextWindow": {
"completionTokens": 0,
"objectiveId": "objectiveId",
"previousWindowContinueInstructions": "previousWindowContinueInstructions",
"promptTokens": 0,
"sequence": 0
},
"strategies": [
"string"
],
"summary": "summary"
},
"error": {
"message": "message",
"type": "type"
},
"subObjectiveCreated": {
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
}
},
"toolApprovalRequested": {
"toolCallId": "toolCallId"
},
"toolApproved": {
"toolCallId": "toolCallId"
},
"toolCalled": {
"toolCallId": "toolCallId"
},
"toolDenied": {
"memo": "memo",
"toolCallId": "toolCallId"
},
"toolError": {
"message": "message",
"toolCallId": "toolCallId"
},
"toolResult": {
"content": "content",
"toolCallId": "toolCallId"
},
"type": "type",
"userMessage": {
"content": "content"
}
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"contextWindowId": "contextWindowId",
"info": {
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_USER",
"email": "email",
"name": "name"
}
},
"objective": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
}
}
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}