Send messages and receive AI responses
role and contentuser - Messages from the end userassistant - Previous AI responses (for context)| Event | Description |
|---|---|
message_start | Start of assistant response |
content_block_start | Start of content block |
content_block_delta | Text chunk |
tool_use_start | Agent is calling a tool |
tool_result | Tool execution result |
content_block_stop | End of content block |
message_stop | End of message |