Get an objective tool call by ID
GET/v1/workspaces/{workspaceId}/objectives/{objectiveId}/tool_calls/{toolCallId}
Retrieves a single tool call, including the content the tool returned. Media content (images, audio) is served as short-lived signed URLs.
Get an objective tool call by ID
curl https://api.cadenya.com/v1/workspaces/$WORKSPACE_ID/objectives/$OBJECTIVE_ID/tool_calls/$TOOL_CALL_ID \
-H "Authorization: Bearer $CADENYA_API_KEY"{
"data": {
"callable": {
"agent": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"cadenyaProvidedTool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"tool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
}
},
"arguments": {
"foo": "bar"
},
"memo": "memo",
"statusChangedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
},
"executionStatus": "TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED",
"info": {
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"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"
}
}
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"status": "TOOL_CALL_STATUS_UNSPECIFIED",
"result": {
"content": [
{
"audio": {
"expiresAt": "2019-12-27T18:11:19.117Z",
"mimeType": "mimeType",
"sizeBytes": "sizeBytes",
"url": "url"
},
"image": {
"expiresAt": "2019-12-27T18:11:19.117Z",
"mimeType": "mimeType",
"sizeBytes": "sizeBytes",
"url": "url"
},
"text": {
"text": "text"
}
}
]
}
}Returns Examples
{
"data": {
"callable": {
"agent": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"cadenyaProvidedTool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"tool": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"name": "name",
"profileId": "profileId",
"workspaceId": "workspaceId",
"bundleKey": "bundleKey",
"externalId": "externalId",
"labels": {
"foo": "string"
},
"updatedAt": "2019-12-27T18:11:19.117Z"
}
},
"arguments": {
"foo": "bar"
},
"memo": "memo",
"statusChangedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
},
"executionStatus": "TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED",
"info": {
"createdBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"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"
}
}
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"status": "TOOL_CALL_STATUS_UNSPECIFIED",
"result": {
"content": [
{
"audio": {
"expiresAt": "2019-12-27T18:11:19.117Z",
"mimeType": "mimeType",
"sizeBytes": "sizeBytes",
"url": "url"
},
"image": {
"expiresAt": "2019-12-27T18:11:19.117Z",
"mimeType": "mimeType",
"sizeBytes": "sizeBytes",
"url": "url"
},
"text": {
"text": "text"
}
}
]
}
}