Overview
CAW does not currently ship a dedicated Vercel AI SDK adapter package. The recommended integration pattern is:- use
@cobo/agentic-walletas the CAW backend - expose a narrow set of Vercel AI SDK
tool(...)definitions - keep policy denials in-band as normal tool results
- track submitted operations by
request_id
Canonical Tool Shape
The recommended TypeScript subset is:submit_pact- one execution tool:
contract_callortransfer_tokens get_transaction_record_by_request_idget_audit_logs
- Pact Drafting
- Execution
- Observer
Example Pattern
Denial Behavior
When a CAW execution call is denied by policy, return the structured denial payload from your tool implementation instead of flattening it into an opaque string or throwing it away. That gives the model access to:codereasondetailssuggestion
Use This Pattern When
- your runtime is already built on
generateText/streamText - you want TypeScript-native tool orchestration
- you want CAW as a scoped wallet layer, not as the entire agent framework
Developer Guide
Full TypeScript quickstart for Vercel AI SDK.