symposium 3.0.4 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Agent.js +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +2 -1
- package/package.json +1 -1
package/Agent.js
CHANGED
|
@@ -172,7 +172,7 @@ export default class Agent {
|
|
|
172
172
|
case 'always':
|
|
173
173
|
const text = await context.getText();
|
|
174
174
|
if (text)
|
|
175
|
-
context_texts.push('<context>' + text + '</context>');
|
|
175
|
+
context_texts.push('<context' + (title ? ' title="' + title.replace(/"/g, '"') + '"' : '') + '>' + text + '</context>');
|
|
176
176
|
break;
|
|
177
177
|
|
|
178
178
|
case 'on_request':
|
package/CLAUDE.md
CHANGED
|
@@ -74,7 +74,7 @@ Two distinct concepts share the word "context":
|
|
|
74
74
|
| `{type:'output', content}` | text/image content block | Yielded once the model finishes a message |
|
|
75
75
|
| `{type:'reasoning', content}` | reasoning text | Yielded after assembly, per reasoning block |
|
|
76
76
|
| `{type:'tool', id, name, arguments}` | flattened tool call | Before invoking a tool |
|
|
77
|
-
| `{type:'tool_response', name, success, response?, error?}` | tool result | After tool returns or throws |
|
|
77
|
+
| `{type:'tool_response', id, name, toolkit, success, response?, error?}` | tool result | After tool returns or throws. `id` matches the `tool` event's id; `name` is the tool name (same as the `tool` event); `toolkit` is the owning toolkit's name. |
|
|
78
78
|
| `{type:'tools_auth', id, tools}` | uuid + pending tool calls | When `tool.authorize()` returns false; resume by sending `{type:'auth', id, decision}` on the input channel |
|
|
79
79
|
| `{type:'retry', attempt, reason}` | 1-indexed retry number + error message | Yielded only when an error occurs AFTER at least one `chunk` has been streamed for the current turn (hybrid retry, Phase 5). Errors before any output are retried silently. |
|
|
80
80
|
| `{type:'result', value}` | parsed value | Utility agents only |
|
package/README.md
CHANGED
|
@@ -158,10 +158,11 @@ All events yielded from the generator:
|
|
|
158
158
|
| `output` | `{content}` | Final assembled content block (`text` / `image`) for one assistant message. |
|
|
159
159
|
| `reasoning` | `{content}` | Reasoning text. |
|
|
160
160
|
| `tool` | `{id, name, arguments}` | Emitted before invoking a tool. |
|
|
161
|
-
| `tool_response` | `{name, success, response?, error?}` | Emitted after the tool returns or throws. |
|
|
161
|
+
| `tool_response` | `{id, name, toolkit, success, response?, error?}` | Emitted after the tool returns or throws. `id` matches the `tool` event's id; `name` is the tool name; `toolkit` is the owning toolkit's name. |
|
|
162
162
|
| `tools_auth` | `{id, tools}` | Yielded when authorization is required — see below. |
|
|
163
163
|
| `retry` | `{attempt, reason}` | Only when an error occurs *after* at least one chunk has already streamed for the current turn. |
|
|
164
164
|
| `result` | `{value}` | Only when `response_schema` is set — parsed structured answer. |
|
|
165
|
+
| `turn_end` | `{thread}` | After each completed turn (LLM done with no more tool calls). Fires per-turn whether the run continues or ends — use it (not `end`) to detect turn boundaries inside a streaming run. |
|
|
165
166
|
| `end` | `{thread}` | Always yielded last, even on throw. |
|
|
166
167
|
|
|
167
168
|
Errors throw out of the generator. There is no `error` event.
|