@inkeep/ai-sdk-provider 0.0.0-dev-20251208202532 → 0.30.2

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.
package/README.md CHANGED
@@ -30,7 +30,7 @@ const inkeep = createInkeep({
30
30
  });
31
31
 
32
32
  const { text } = await generateText({
33
- model: inkeep(),
33
+ model: inkeep('agent-123'),
34
34
  prompt: 'What is the weather in NYC?',
35
35
  });
36
36
 
@@ -45,14 +45,13 @@ import { createInkeep } from '@inkeep/ai-sdk-provider';
45
45
 
46
46
  const inkeep = createInkeep({
47
47
  baseURL: proccess.env.INKEEP_AGENTS_RUN_API_URL,
48
- apiKey: <your-agent-api-key>,
49
48
  headers: {
50
49
  'x-emit-operations': 'true', // Enable tool event streaming
51
50
  },
52
51
  });
53
52
 
54
53
  const result = await streamText({
55
- model: inkeep(),
54
+ model: inkeep('agent-123'),
56
55
  prompt: 'Plan an event in NYC',
57
56
  });
58
57
 
@@ -69,7 +68,7 @@ createInkeep({
69
68
  })
70
69
  ```
71
70
 
72
- ### Provider Options
71
+ ### Model Options
73
72
 
74
73
  Pass options when creating a provider instance:
75
74
 
@@ -87,7 +86,7 @@ import { inkeep } from '@inkeep/ai-sdk-provider';
87
86
  import { generateText } from 'ai';
88
87
 
89
88
  const result = await generateText({
90
- model: inkeep({
89
+ model: inkeep('agent-123', {
91
90
  conversationId: 'conv-123',
92
91
  headers: {
93
92
  'user-id': 'user-456',
@@ -153,7 +152,7 @@ const inkeep = createInkeep({
153
152
  });
154
153
 
155
154
  const result = await streamText({
156
- model: inkeep(),
155
+ model: inkeep('agent-123'),
157
156
  prompt: 'Search for recent papers on AI',
158
157
  });
159
158
 
@@ -199,3 +198,9 @@ The provider emits the following AI SDK v2 stream events:
199
198
  **Control Events** (always emitted):
200
199
  - `finish` - Stream completion with usage statistics
201
200
  - `error` - Stream error occurred
201
+
202
+ ## Model Identification
203
+
204
+ Models are identified by agent ID in the format:
205
+ - `agent-123` - Direct agent ID
206
+ - `inkeep/agent-123` - With provider prefix (when used with custom factories)