AgentToolActivityEvent
One tool request or tool result in an agent's saved conversation.
- invocationType: string
_id requiredTies a tool request to its result within the same agent message.
- kindType: enumrequired
tool_called for a tool request, tool_result for its result.
valuestask_startedtool_calledtool_resulttask_finished - sequenceType: integermin:0required
The recorded order of this event within this activity, from 0.
- occurredType: stringFormat: date-timenullable
_at When the event happened, only when the record holds that time. Never the time the agent state was saved.
- outcomeType: enumnullable
returned or error when the recorded result says so; otherwise null.
valuesreturnederrortimeoutcancelled - payloadType: enum
_state How much of the payload payload_text shows.
valuesfullredactedtruncatedredacted_truncatedunavailable - payloadType: stringnullable
_text A sanitized preview of the tool input or the tool result. Credential fields show as [redacted]. Null when no preview is available or the whole payload was withheld.
- toolType: stringnullable
_name The tool that was called. Null when a recorded result has no recorded request.
- turnType: integernullable
The index of the last visible transcript message before this event, when it can be placed.

