You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(managed-agent): correct truncation flag, gate lookup, custom tool result
- `truncated` was true whenever the history size equalled the limit, even
though nothing was dropped. Event reads now report the untrimmed total and
the flag compares against that.
- Pending-gate enrichment capped its read, which keeps the OLDEST events in
page order — the opposite of where blocking gates live. It now filters to
the ids being looked up as pages arrive, which is both correct regardless
of page order and bounded by the id count. Paging continues on the raw
page so a fully-filtered page is not mistaken for the end of the list.
- Respond To Custom Tool applied one result to every id, so multiple pending
tools would all receive the same output. It now answers a single call per
invocation.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/integrations/managed_agent.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,7 +216,7 @@ Return the result of a custom tool a Managed Agent session is waiting on so it c
216
216
217
217
| Parameter | Type | Required | Description |
218
218
| --------- | ---- | -------- | ----------- |
219
-
|`customToolUseIds`|array| Yes |Custom tool-use EVENT ids, from Get Session pendingTools\[\].id where kind is 'custom_tool_result'. |
219
+
|`customToolUseId`|string| Yes |The custom tool-use EVENT id being answered, from Get Session pendingTools\[\].id where kind is 'custom_tool_result'. |
220
220
|`result`| string | Yes | The tool's output, returned to the agent as text. |
221
221
|`isError`| boolean | No | Mark the result as a failure so the agent can adjust its approach. |
222
222
@@ -225,7 +225,7 @@ Return the result of a custom tool a Managed Agent session is waiting on so it c
225
225
| Parameter | Type | Description |
226
226
| --------- | ---- | ----------- |
227
227
|`sessionId`| string | The session that was answered. |
228
-
|`answeredToolUseIds`|json| The custom tool-use event ids that were answered. |
228
+
|`answeredToolUseId`|string| The custom tool-use event id that was answered. |
0 commit comments