@silverprotocol/openai-agents 0.7.0 → 0.7.1

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.
Files changed (2) hide show
  1. package/README.md +13 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -138,6 +138,16 @@ turn under the source round. At `handoff_occurred` it emits:
138
138
  its own `turn.done`.
139
139
 
140
140
  Known limitation: when the model requests several handoffs in one response,
141
- the SDK runs the first and sends the ignored calls' results to the model only,
142
- never to the stream. Those calls get no `tool.done`, so the source round is
143
- closed at `flush()` with `turn.abort` (`stream-truncated`), not `success`.
141
+ the SDK runs only the first. What happens to the ignored calls depends on the
142
+ `@openai/agents` version:
143
+ - From 0.8.1, nothing about them reaches the stream. The SDK drops them from
144
+ the run's history; only when the conversation is server-managed
145
+ (`conversationId` or `previousResponseId`) does it send the model a
146
+ synthetic result for each. The ignored calls get no `tool.done`, so the
147
+ source round is closed at `flush()` with `turn.abort` (`stream-truncated`),
148
+ not `success`.
149
+ - Up to 0.8.0, the SDK streams a result for each ignored call ("Multiple
150
+ handoffs detected, ignoring this one."), which lands as that call's
151
+ `tool.done`, and the source round closes normally. The ignored handoff's
152
+ nested turn, opened at its `handoff_requested`, gets no `handoff_occurred`
153
+ and is closed at `flush()` with `turn.abort` (`stream-truncated`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silverprotocol/openai-agents",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "AgJSON normalizer for the OpenAI Agents SDK (RunItemStreamEvent / Responses streaming → AgEvent[]) — fixture-tested.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "!dist/**/*.test.*"
32
32
  ],
33
33
  "dependencies": {
34
- "@silverprotocol/core": "0.7.0"
34
+ "@silverprotocol/core": "0.7.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@openai/agents": ">=0.2.0 <0.19"