Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 30 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ try {
if (msg.type === DroidMessageType.AssistantTextDelta) {
process.stdout.write(msg.text);
}
if (msg.type === DroidMessageType.TurnComplete) {
if (msg.type === DroidMessageType.Result) {
console.log('\nDone!');
}
}
Expand Down Expand Up @@ -409,30 +409,35 @@ if (msg.type === DroidMessageType.AssistantTextDelta) {
}
```

| Type | Description |
| -------------------------- | --------------------------------------- |
| `assistant_text_delta` | Streaming text token from the assistant |
| `thinking_text_delta` | Streaming reasoning/thinking token |
| `tool_use` | Tool invocation by the assistant |
| `tool_result` | Result from a tool execution |
| `tool_progress` | Progress update during tool execution |
| `working_state_changed` | Agent working state transition |
| `token_usage_update` | Updated token usage counters |
| `create_message` | Full assistant message created |
| `turn_complete` | Sentinel: agent turn finished |
| `session_title_updated` | Session title changed |
| `mcp_status_changed` | MCP server status changed |
| `mission_state_changed` | Mission state changed |
| `mission_features_changed` | Mission features changed |
| `mission_progress_entry` | Mission progress log changed |
| `mission_heartbeat` | Mission heartbeat |
| `mission_worker_started` | Mission worker started |
| `mission_worker_completed` | Mission worker completed |
| `mcp_auth_required` | MCP authentication required |
| `mcp_auth_completed` | MCP authentication completed |
| `permission_resolved` | Tool permission request resolved |
| `settings_updated` | Session settings changed |
| `error` | Error event from the process |
| Type | Description |
| -------------------------- | ----------------------------------------------- |
| `assistant` | Complete assistant message |
| `user` | Complete user message |
| `assistant_text_delta` | Streaming text token from the assistant |
| `assistant_text_complete` | End of an assistant text block |
| `thinking_text_delta` | Streaming reasoning/thinking token |
| `thinking_text_complete` | End of a thinking block |
| `tool_call` | Tool invocation by the assistant |
| `tool_call_delta` | Streaming tool call input |
| `tool_result` | Result from a tool execution |
| `tool_progress` | Progress update during tool execution |
| `hook` | File hook execution event (started or finished) |
| `working_state_changed` | Agent working state transition |
| `token_usage_update` | Updated token usage counters |
| `result` | End-of-turn sentinel with aggregated metadata |
| `session_title_updated` | Session title changed |
| `settings_updated` | Session settings changed |
| `permission_resolved` | Tool permission request resolved |
| `mcp_status_changed` | MCP server status changed |
| `mcp_auth_required` | MCP authentication required |
| `mcp_auth_completed` | MCP authentication completed |
| `error` | Error event from the process |
| `mission_state_changed` | Mission state changed |
| `mission_features_changed` | Mission features changed |
| `mission_progress_entry` | Mission progress log changed |
| `mission_heartbeat` | Mission heartbeat |
| `mission_worker_started` | Mission worker started |
| `mission_worker_completed` | Mission worker completed |

### Options

Expand Down
47 changes: 0 additions & 47 deletions docs/examples/init-metadata.md

This file was deleted.

64 changes: 0 additions & 64 deletions docs/examples/list-sessions.md

This file was deleted.

90 changes: 0 additions & 90 deletions docs/examples/multi-turn-session.md

This file was deleted.

112 changes: 0 additions & 112 deletions docs/examples/permission-handler.md

This file was deleted.

Loading
Loading