Packages Published
TypeScript (npm) - published at 18:42:25 UTC
| Package | Version | Install |
|---|---|---|
| @ag-ui/cloudflare-agents | 0.2.0 | npm install @ag-ui/cloudflare-agents@0.2.0
|
@ag-ui/cloudflare-agents@0.2.0
- Tools can opt in to value-bearing approvals with
approvalValuesand read the validated value withrun.approvalValue(toolCallId). The interrupt advertises the value schema. AjsonSchema()used withapprovalValuesmust provide a runtimevalidatefunction. - An explicit affirmative decision is still required to run a tool. The value schema applies to approvals. Denials and cancellations may omit the value. Any accompanying value is ignored.
- Requests sharing an approval store claim pending approvals one at a time. If another request claims an approval while a resume is in progress, the losing request returns
INVALID_RESUMEbefore the model or tool runs. - When an approval store is configured, only answers matching a pending approval reach the value validator.
- Agents without
initialStatenow record the client's{}state and can finish the run. - An explicit
nullstate is recorded asnull.
Breaking changes
- An affirmative approval carrying
valuenow returnsINVALID_RESUMEwhen the tool has noapprovalValuesschema. In0.1.0, that field was ignored.