events | array | Yes | Event objects to append. |
events[].type | string | Yes | Input Event type. |
events[].content | array | Conditional | Required for user.message and system.message; must be a non-empty content block array. |
events[].file_attachments | array | No | File attachment metadata for user.message. |
events[].tool_use_id | string | Conditional | Required for user.tool_confirmation and user.tool_result. |
events[].custom_tool_use_id | string | Conditional | Required for user.custom_tool_result. |
events[].result | string | Conditional | Required for user.tool_confirmation: allow or deny. |
events[].deny_message | string | No | Denial reason when result=deny. |
events[].description | string | Conditional | Required for user.define_outcome. |
events[].rubric | object | Conditional | Required for user.define_outcome. |
events[].reason | string | No | Interrupt reason for user.interrupt. |
events[].is_error | boolean | No | Error flag for tool result events. |