@copass/ai-sdk
Advanced tools
+2
-2
| { | ||
| "name": "@copass/ai-sdk", | ||
| "version": "0.5.6", | ||
| "version": "0.5.7", | ||
| "description": "Vercel AI SDK tool adapters for Copass — drop-in discover/interpret/search tools for LLM agents", | ||
@@ -74,3 +74,3 @@ "publishConfig": { | ||
| }, | ||
| "gitHead": "89abb7a320314feed66ff82fcb251f41ad2a70cb" | ||
| "gitHead": "58d1405c0de170b6a7c25c07ba943507543d9e81" | ||
| } |
+21
-0
@@ -115,2 +115,23 @@ # @copass/ai-sdk | ||
| ## Conversation metadata | ||
| When you mirror turns into a `ContextWindow`, set the conversation | ||
| roster once at construction so it rides on every turn: | ||
| ```typescript | ||
| const window = await client.contextWindow.create({ | ||
| sandbox_id, | ||
| participants: ['User', 'agent:support-bot'], | ||
| }); | ||
| await window.addTurn({ | ||
| role: 'user', | ||
| content: 'Hey, did you finish the report?', | ||
| name: 'Alice', // → envelope `speaker` | ||
| }); | ||
| ``` | ||
| See [`@copass/core`](../core) for the full envelope surface | ||
| (`speaker`, `participants`, `occurred_at`, free-form `source_type`). | ||
| ## Related | ||
@@ -117,0 +138,0 @@ |
47410
1.17%145
16.94%