Id of the agent whose answer was rated.
Id of the chat the rated message belongs to — the value onNewChat reported.
When the rating was created, as an ISO 8601 timestamp.
Identity the Agents API attributed the rating to. Set by the Agents API.
The end-user identifier the Agents API recorded for the request.
Derived from the credentials the SDK sends, which carry
externalId for type: 'key' authorization.
Id of this rating.
Pass it as the rateId argument of rate() to update the rating,
or to deleteRate() to remove it.
Id of the agent's knowledge base (Agent.knowledge) at the time of the rating.
An empty string when the agent has no knowledge base.
The knowledge citations that were attached to the rated answer, as [document_id, id] pairs.
The SDK builds them from the matches of the rated message, so a negative rating can be traced back to the documents the answer was drawn from. Empty when the answer cited nothing.
Id of the message that was rated.
When the rating was last changed, as an ISO 8601 timestamp.
Id of the D-ID account that owns the agent the rating was left on. Set by the Agents API.
The score itself: 1 for a positive rating, -1 for a negative one.
A rating stored against one message of a chat, as the Agents API returns it.
Produced by rate() and returned again by deleteRate(). Keep id if the user may change their mind: pass it back to rate() as
rateIdto update the rating, or to deleteRate() to remove it.