@reminix/vercel-ai 0.0.2 → 0.0.4
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 +27 -15
- package/dist/adapter.d.ts +24 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +23 -1
- package/dist/adapter.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Supports both:
|
|
|
7
7
|
- **ToolLoopAgent** - Full agents with tools and automatic tool loop handling
|
|
8
8
|
- **Model** - Simple completions via `generateText`/`streamText` without tools
|
|
9
9
|
|
|
10
|
-
> **Ready to go live?** [Deploy to Reminix](https://reminix.com/docs/deployment) for zero-config hosting, or [self-host](https://reminix.com/docs/deployment/self-hosting) on your own infrastructure.
|
|
10
|
+
> **Ready to go live?** [Deploy to Reminix Cloud](https://reminix.com/docs/deployment) for zero-config hosting, or [self-host](https://reminix.com/docs/deployment/self-hosting) on your own infrastructure.
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
@@ -17,6 +17,16 @@ npm install @reminix/vercel-ai ai @ai-sdk/openai
|
|
|
17
17
|
|
|
18
18
|
This will also install `@reminix/runtime` as a dependency.
|
|
19
19
|
|
|
20
|
+
## Quick Start with Model
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { openai } from '@ai-sdk/openai';
|
|
24
|
+
import { wrapAndServe } from '@reminix/vercel-ai';
|
|
25
|
+
|
|
26
|
+
const model = openai('gpt-4o');
|
|
27
|
+
wrapAndServe(model, { name: 'chat-agent', port: 8080 });
|
|
28
|
+
```
|
|
29
|
+
|
|
20
30
|
## Quick Start with ToolLoopAgent
|
|
21
31
|
|
|
22
32
|
For agents with tools, use `ToolLoopAgent`:
|
|
@@ -25,9 +35,7 @@ For agents with tools, use `ToolLoopAgent`:
|
|
|
25
35
|
import { ToolLoopAgent, tool } from 'ai';
|
|
26
36
|
import { openai } from '@ai-sdk/openai';
|
|
27
37
|
import { z } from 'zod';
|
|
28
|
-
|
|
29
|
-
import { wrap } from '@reminix/vercel-ai';
|
|
30
|
-
import { serve } from '@reminix/runtime';
|
|
38
|
+
import { wrapAndServe } from '@reminix/vercel-ai';
|
|
31
39
|
|
|
32
40
|
const weatherTool = tool({
|
|
33
41
|
description: 'Get the current weather for a city',
|
|
@@ -45,25 +53,18 @@ const agent = new ToolLoopAgent({
|
|
|
45
53
|
tools: { getWeather: weatherTool }
|
|
46
54
|
});
|
|
47
55
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
serve([reminixAgent], { port: 8080 });
|
|
56
|
+
wrapAndServe(agent, { name: 'weather-agent', port: 8080 });
|
|
51
57
|
```
|
|
52
58
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
For simple completions without tools, pass the model directly:
|
|
59
|
+
For more flexibility (e.g., serving multiple agents), use `wrap` and `serve` separately:
|
|
56
60
|
|
|
57
61
|
```typescript
|
|
58
62
|
import { openai } from '@ai-sdk/openai';
|
|
59
|
-
|
|
60
63
|
import { wrap } from '@reminix/vercel-ai';
|
|
61
64
|
import { serve } from '@reminix/runtime';
|
|
62
65
|
|
|
63
66
|
const model = openai('gpt-4o');
|
|
64
|
-
|
|
65
67
|
const reminixAgent = wrap(model, { name: 'chat-agent' });
|
|
66
|
-
|
|
67
68
|
serve([reminixAgent], { port: 8080 });
|
|
68
69
|
```
|
|
69
70
|
|
|
@@ -73,9 +74,20 @@ Your agent is now available at:
|
|
|
73
74
|
|
|
74
75
|
## API Reference
|
|
75
76
|
|
|
77
|
+
### `wrapAndServe(modelOrAgent, options)`
|
|
78
|
+
|
|
79
|
+
Wrap a Vercel AI SDK model or agent and serve it immediately. Combines `wrap` and `serve` for single-agent setups.
|
|
80
|
+
|
|
81
|
+
| Parameter | Type | Default | Description |
|
|
82
|
+
|-----------|------|---------|-------------|
|
|
83
|
+
| `modelOrAgent` | `ToolLoopAgent \| LanguageModel` | required | A ToolLoopAgent or language model |
|
|
84
|
+
| `options.name` | `string` | `"vercel-ai-agent"` | Name for the agent (used in URL path) |
|
|
85
|
+
| `options.port` | `number` | `8080` | Port to serve on |
|
|
86
|
+
| `options.hostname` | `string` | `"0.0.0.0"` | Hostname to bind to |
|
|
87
|
+
|
|
76
88
|
### `wrap(modelOrAgent, options)`
|
|
77
89
|
|
|
78
|
-
Wrap a Vercel AI SDK ToolLoopAgent or Model for use with Reminix Runtime.
|
|
90
|
+
Wrap a Vercel AI SDK ToolLoopAgent or Model for use with Reminix Runtime. Use this with `serve` from `@reminix/runtime` for multi-agent setups.
|
|
79
91
|
|
|
80
92
|
| Parameter | Type | Default | Description |
|
|
81
93
|
|-----------|------|---------|-------------|
|
|
@@ -174,7 +186,7 @@ For information about the server, endpoints, request/response formats, and more,
|
|
|
174
186
|
|
|
175
187
|
Ready to go live?
|
|
176
188
|
|
|
177
|
-
- **[Deploy to Reminix](https://reminix.com/docs/deployment)** - Zero-config cloud hosting
|
|
189
|
+
- **[Deploy to Reminix Cloud](https://reminix.com/docs/deployment)** - Zero-config cloud hosting
|
|
178
190
|
- **[Self-host](https://reminix.com/docs/deployment/self-hosting)** - Run on your own infrastructure
|
|
179
191
|
|
|
180
192
|
## Links
|
package/dist/adapter.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ToolLoopAgent } from 'ai';
|
|
7
7
|
import { generateText, streamText, type LanguageModel } from 'ai';
|
|
8
|
-
import { BaseAdapter, type InvokeRequest, type InvokeResponse, type ChatRequest, type ChatResponse } from '@reminix/runtime';
|
|
8
|
+
import { BaseAdapter, type ServeOptions, type InvokeRequest, type InvokeResponse, type ChatRequest, type ChatResponse } from '@reminix/runtime';
|
|
9
9
|
/**
|
|
10
10
|
* Options for wrapping a Vercel AI model or agent.
|
|
11
11
|
*/
|
|
@@ -119,5 +119,28 @@ export declare class VercelAIAdapter extends BaseAdapter {
|
|
|
119
119
|
* ```
|
|
120
120
|
*/
|
|
121
121
|
export declare function wrap(modelOrAgent: LanguageModel | AnyToolLoopAgent, options?: VercelAIAdapterOptions): VercelAIAdapter;
|
|
122
|
+
/**
|
|
123
|
+
* Options for wrapping and serving a Vercel AI model or agent.
|
|
124
|
+
*/
|
|
125
|
+
export interface WrapAndServeOptions extends VercelAIAdapterOptions, ServeOptions {
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Wrap a Vercel AI model or agent and serve it immediately.
|
|
129
|
+
*
|
|
130
|
+
* This is a convenience function that combines `wrap` and `serve` for single-agent setups.
|
|
131
|
+
*
|
|
132
|
+
* @param modelOrAgent - A Vercel AI SDK ToolLoopAgent or LanguageModel.
|
|
133
|
+
* @param options - Combined adapter and server options.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```typescript
|
|
137
|
+
* import { openai } from '@ai-sdk/openai';
|
|
138
|
+
* import { wrapAndServe } from '@reminix/vercel-ai';
|
|
139
|
+
*
|
|
140
|
+
* const model = openai('gpt-4o');
|
|
141
|
+
* wrapAndServe(model, { name: 'my-agent', port: 8080 });
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
export declare function wrapAndServe(modelOrAgent: LanguageModel | AnyToolLoopAgent, options?: WrapAndServeOptions): void;
|
|
122
145
|
export {};
|
|
123
146
|
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,aAAa,EAAqB,MAAM,IAAI,CAAC;AAErF,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"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I,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC;CAsB/E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAClB,YAAY,EAAE,aAAa,GAAG,gBAAgB,EAC9C,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAEjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB,EAAE,YAAY;CAAG;AAEpF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,aAAa,GAAG,gBAAgB,EAC9C,OAAO,GAAE,mBAAwB,GAChC,IAAI,CAIN"}
|
package/dist/adapter.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Supports both ToolLoopAgent (for agents with tools) and LanguageModel (for generateText).
|
|
5
5
|
*/
|
|
6
6
|
import { generateText, streamText } from 'ai';
|
|
7
|
-
import { BaseAdapter, } from '@reminix/runtime';
|
|
7
|
+
import { BaseAdapter, serve, } from '@reminix/runtime';
|
|
8
8
|
/**
|
|
9
9
|
* Type guard to check if the input is a ToolLoopAgent.
|
|
10
10
|
*/
|
|
@@ -243,4 +243,26 @@ export class VercelAIAdapter extends BaseAdapter {
|
|
|
243
243
|
export function wrap(modelOrAgent, options = {}) {
|
|
244
244
|
return new VercelAIAdapter(modelOrAgent, options);
|
|
245
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Wrap a Vercel AI model or agent and serve it immediately.
|
|
248
|
+
*
|
|
249
|
+
* This is a convenience function that combines `wrap` and `serve` for single-agent setups.
|
|
250
|
+
*
|
|
251
|
+
* @param modelOrAgent - A Vercel AI SDK ToolLoopAgent or LanguageModel.
|
|
252
|
+
* @param options - Combined adapter and server options.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```typescript
|
|
256
|
+
* import { openai } from '@ai-sdk/openai';
|
|
257
|
+
* import { wrapAndServe } from '@reminix/vercel-ai';
|
|
258
|
+
*
|
|
259
|
+
* const model = openai('gpt-4o');
|
|
260
|
+
* wrapAndServe(model, { name: 'my-agent', port: 8080 });
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
export function wrapAndServe(modelOrAgent, options = {}) {
|
|
264
|
+
const { port, hostname, ...adapterOptions } = options;
|
|
265
|
+
const agent = wrap(modelOrAgent, adapterOptions);
|
|
266
|
+
serve([agent], { port, hostname });
|
|
267
|
+
}
|
|
246
268
|
//# sourceMappingURL=adapter.js.map
|
package/dist/adapter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAyC,MAAM,IAAI,CAAC;AAErF,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAyC,MAAM,IAAI,CAAC;AAErF,OAAO,EACL,WAAW,EACX,KAAK,GAON,MAAM,kBAAkB,CAAC;AAY1B;;GAEG;AACH,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,CACL,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,UAAU,IAAI,KAAK;QACnB,OAAQ,KAA0B,CAAC,QAAQ,KAAK,UAAU,CAC3D,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;IAEzB,YAAY,CAAmC;IAC/C,OAAO,CAAU;IACjB,KAAK,CAAS;IAEtB;;OAEG;IACO,aAAa,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACO,WAAW,GAAG,UAAU,CA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C,CAAC;AACpD,CAAC;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,YAAY,CAC1B,YAA8C,EAC9C,UAA+B,EAAE;IAEjC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,GAAG,OAAO,CAAC;IACtD,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IACjD,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AACrC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { VercelAIAdapter, wrap } from './adapter.js';
|
|
2
|
-
export type { VercelAIAdapterOptions } from './adapter.js';
|
|
1
|
+
export { VercelAIAdapter, wrap, wrapAndServe } from './adapter.js';
|
|
2
|
+
export type { VercelAIAdapterOptions, WrapAndServeOptions } from './adapter.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { VercelAIAdapter, wrap } from './adapter.js';
|
|
1
|
+
export { VercelAIAdapter, wrap, wrapAndServe } from './adapter.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reminix/vercel-ai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Reminix adapter for Vercel AI SDK - serve agents as REST APIs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -43,10 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
|
-
"dist"
|
|
46
|
+
"dist",
|
|
47
|
+
"LICENSE"
|
|
47
48
|
],
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@reminix/runtime": "^0.0.
|
|
50
|
+
"@reminix/runtime": "^0.0.4"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"ai": ">=6.0.0"
|