Submit feedback for an objective
objectives.feedback.create(objective_id, **kwargs) -> ObjectiveFeedback { data, metadata, info }
POST/v1/workspaces/{workspaceId}/objectives/{objectiveId}/feedback
Submits feedback for an objective’s execution. Feedback scores are used by the agent variation scoring system to evaluate and rank variation performance.
Submit feedback for an objective
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
objective_feedback = cadenya.objectives.feedback.create("objectiveId", workspace_id: "workspaceId", data: {}, metadata: {})
puts(objective_feedback){
"data": {
"comment": "comment",
"score": 0
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"info": {
"agentVariation": {
"id": "id",
"name": "name"
},
"objective": {
"id": "id",
"name": "name"
},
"submittedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
}
}Returns Examples
{
"data": {
"comment": "comment",
"score": 0
},
"metadata": {
"id": "id",
"accountId": "accountId",
"createdAt": "2019-12-27T18:11:19.117Z",
"profileId": "profileId",
"workspaceId": "workspaceId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"info": {
"agentVariation": {
"id": "id",
"name": "name"
},
"objective": {
"id": "id",
"name": "name"
},
"submittedBy": {
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"type": "PROFILE_TYPE_UNSPECIFIED",
"email": "email",
"name": "name"
}
}
}
}