Attach an assessment to a stored trace
POST
/v1/agent-traces/{session_id}/assessments
const url = 'https://api.aerandil.com/v1/agent-traces/example/assessments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kind":"feedback","span_seq":1,"value":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aerandil.com/v1/agent-traces/example/assessments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "feedback", "span_seq": 1, "value": "example" }'Typed verdict on a session or one span of it: feedback (judgement of what happened) or expectation (what should have happened). Requires traces:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
kind
required
string
span_seq
Attach to one span instead of the whole session.
integer
value
required
Responses
Section titled “Responses”Assessment attached
No trace stored for the session