@reminix/anthropic 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 +26 -8
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Reminix Runtime adapter for the [Anthropic API](https://docs.anthropic.com/). Serve Claude models as a REST API.
|
|
4
4
|
|
|
5
|
-
> **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.
|
|
5
|
+
> **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.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -14,18 +14,23 @@ This will also install `@reminix/runtime` as a dependency.
|
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
17
|
+
```typescript
|
|
18
|
+
import Anthropic from '@anthropic-ai/sdk';
|
|
19
|
+
import { wrapAndServe } from '@reminix/anthropic';
|
|
20
|
+
|
|
21
|
+
const client = new Anthropic();
|
|
22
|
+
wrapAndServe(client, { name: 'my-claude', model: 'claude-sonnet-4-20250514', port: 8080 });
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
For more flexibility (e.g., serving multiple agents), use `wrap` and `serve` separately:
|
|
26
|
+
|
|
17
27
|
```typescript
|
|
18
28
|
import Anthropic from '@anthropic-ai/sdk';
|
|
19
29
|
import { wrap } from '@reminix/anthropic';
|
|
20
30
|
import { serve } from '@reminix/runtime';
|
|
21
31
|
|
|
22
|
-
// Create an Anthropic client
|
|
23
32
|
const client = new Anthropic();
|
|
24
|
-
|
|
25
|
-
// Wrap it with the Reminix adapter
|
|
26
33
|
const agent = wrap(client, { name: 'my-claude', model: 'claude-sonnet-4-20250514' });
|
|
27
|
-
|
|
28
|
-
// Serve it as a REST API
|
|
29
34
|
serve([agent], { port: 8080 });
|
|
30
35
|
```
|
|
31
36
|
|
|
@@ -35,9 +40,22 @@ Your agent is now available at:
|
|
|
35
40
|
|
|
36
41
|
## API Reference
|
|
37
42
|
|
|
43
|
+
### `wrapAndServe(client, options)`
|
|
44
|
+
|
|
45
|
+
Wrap an Anthropic client and serve it immediately. Combines `wrap` and `serve` for single-agent setups.
|
|
46
|
+
|
|
47
|
+
| Parameter | Type | Default | Description |
|
|
48
|
+
|-----------|------|---------|-------------|
|
|
49
|
+
| `client` | `Anthropic` | required | An Anthropic client |
|
|
50
|
+
| `options.name` | `string` | `"anthropic-agent"` | Name for the agent (used in URL path) |
|
|
51
|
+
| `options.model` | `string` | `"claude-sonnet-4-20250514"` | Model to use |
|
|
52
|
+
| `options.maxTokens` | `number` | `4096` | Maximum tokens in response |
|
|
53
|
+
| `options.port` | `number` | `8080` | Port to serve on |
|
|
54
|
+
| `options.hostname` | `string` | `"0.0.0.0"` | Hostname to bind to |
|
|
55
|
+
|
|
38
56
|
### `wrap(client, options)`
|
|
39
57
|
|
|
40
|
-
Wrap an Anthropic client for use with Reminix Runtime.
|
|
58
|
+
Wrap an Anthropic client for use with Reminix Runtime. Use this with `serve` from `@reminix/runtime` for multi-agent setups.
|
|
41
59
|
|
|
42
60
|
| Parameter | Type | Default | Description |
|
|
43
61
|
|-----------|------|---------|-------------|
|
|
@@ -130,7 +148,7 @@ For information about the server, endpoints, request/response formats, and more,
|
|
|
130
148
|
|
|
131
149
|
Ready to go live?
|
|
132
150
|
|
|
133
|
-
- **[Deploy to Reminix](https://reminix.com/docs/deployment)** - Zero-config cloud hosting
|
|
151
|
+
- **[Deploy to Reminix Cloud](https://reminix.com/docs/deployment)** - Zero-config cloud hosting
|
|
134
152
|
- **[Self-host](https://reminix.com/docs/deployment/self-hosting)** - Run on your own infrastructure
|
|
135
153
|
|
|
136
154
|
## Links
|
package/dist/adapter.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Anthropic adapter for Reminix Runtime.
|
|
3
3
|
*/
|
|
4
4
|
import type Anthropic from '@anthropic-ai/sdk';
|
|
5
|
-
import { BaseAdapter, type InvokeRequest, type InvokeResponse, type ChatRequest, type ChatResponse } from '@reminix/runtime';
|
|
5
|
+
import { BaseAdapter, type ServeOptions, type InvokeRequest, type InvokeResponse, type ChatRequest, type ChatResponse } from '@reminix/runtime';
|
|
6
6
|
/**
|
|
7
7
|
* Options for wrapping an Anthropic client.
|
|
8
8
|
*/
|
|
@@ -90,4 +90,27 @@ export declare class AnthropicAdapter extends BaseAdapter {
|
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
92
|
export declare function wrap(client: Anthropic, options?: AnthropicAdapterOptions): AnthropicAdapter;
|
|
93
|
+
/**
|
|
94
|
+
* Options for wrapping and serving an Anthropic client.
|
|
95
|
+
*/
|
|
96
|
+
export interface WrapAndServeOptions extends AnthropicAdapterOptions, ServeOptions {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Wrap an Anthropic client and serve it immediately.
|
|
100
|
+
*
|
|
101
|
+
* This is a convenience function that combines `wrap` and `serve` for single-agent setups.
|
|
102
|
+
*
|
|
103
|
+
* @param client - An Anthropic client.
|
|
104
|
+
* @param options - Combined adapter and server options.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import Anthropic from '@anthropic-ai/sdk';
|
|
109
|
+
* import { wrapAndServe } from '@reminix/anthropic';
|
|
110
|
+
*
|
|
111
|
+
* const client = new Anthropic();
|
|
112
|
+
* wrapAndServe(client, { name: 'my-agent', model: 'claude-sonnet-4-20250514', port: 8080 });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export declare function wrapAndServe(client: Anthropic, options?: WrapAndServeOptions): void;
|
|
93
116
|
//# 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;;GAEG;AAEH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACL,WAAW,EAEX,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,CAAC,WAAW,SAAe;IAEjC,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAS;IAE3B;;;;;OAKG;gBACS,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,uBAA4B;IAQpE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAsBhC;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB;;;;;;;;OAQG;IACG,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IA8B7D;;;;;;;OAOG;IACG,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;IAwBvD;;;;;OAKG;IACI,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC;IA+BlF;;;;;OAKG;IACI,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC;CAkB/E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,uBAA4B,GAAG,gBAAgB,CAE/F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB,EAAE,YAAY;CAAG;AAErF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,mBAAwB,GAAG,IAAI,CAIvF"}
|
package/dist/adapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anthropic adapter for Reminix Runtime.
|
|
3
3
|
*/
|
|
4
|
-
import { BaseAdapter, } from '@reminix/runtime';
|
|
4
|
+
import { BaseAdapter, serve, } from '@reminix/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* Adapter for Anthropic messages API.
|
|
7
7
|
*/
|
|
@@ -201,4 +201,26 @@ export class AnthropicAdapter extends BaseAdapter {
|
|
|
201
201
|
export function wrap(client, options = {}) {
|
|
202
202
|
return new AnthropicAdapter(client, options);
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Wrap an Anthropic client and serve it immediately.
|
|
206
|
+
*
|
|
207
|
+
* This is a convenience function that combines `wrap` and `serve` for single-agent setups.
|
|
208
|
+
*
|
|
209
|
+
* @param client - An Anthropic client.
|
|
210
|
+
* @param options - Combined adapter and server options.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```typescript
|
|
214
|
+
* import Anthropic from '@anthropic-ai/sdk';
|
|
215
|
+
* import { wrapAndServe } from '@reminix/anthropic';
|
|
216
|
+
*
|
|
217
|
+
* const client = new Anthropic();
|
|
218
|
+
* wrapAndServe(client, { name: 'my-agent', model: 'claude-sonnet-4-20250514', port: 8080 });
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
export function wrapAndServe(client, options = {}) {
|
|
222
|
+
const { port, hostname, ...adapterOptions } = options;
|
|
223
|
+
const agent = wrap(client, adapterOptions);
|
|
224
|
+
serve([agent], { port, hostname });
|
|
225
|
+
}
|
|
204
226
|
//# 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;;GAEG;AAIH,OAAO,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EACL,WAAW,EACX,KAAK,GAON,MAAM,kBAAkB,CAAC;AAmB1B;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;IAEzB,MAAM,CAAY;IAClB,KAAK,CAAS;IACd,MAAM,CAAS;IACf,UAAU,CAAS;IAE3B;;;;;OAKG;IACH,YAAY,MAAiB,EAAE,UAAmC,EAAE;QAClE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,IAAI,iBAAiB,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,0BAA0B,CAAC;QAC1D,IAAI,CAAC,UAAU,GAA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C,MAAiB,EAAE,UAAmC,EAAE;IAC3E,OAAO,IAAI,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAOD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,YAAY,CAAC,MAAiB,EAAE,UAA+B,EAAE;IAC/E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,GAAG,OAAO,CAAC;IACtD,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,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 { AnthropicAdapter, wrap } from './adapter.js';
|
|
2
|
-
export type { AnthropicAdapterOptions } from './adapter.js';
|
|
1
|
+
export { AnthropicAdapter, wrap, wrapAndServe } from './adapter.js';
|
|
2
|
+
export type { AnthropicAdapterOptions, 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,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AnthropicAdapter, wrap } from './adapter.js';
|
|
1
|
+
export { AnthropicAdapter, 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,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reminix/anthropic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Reminix adapter for Anthropic - serve agents as REST APIs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
|
-
"dist"
|
|
45
|
+
"dist",
|
|
46
|
+
"LICENSE"
|
|
46
47
|
],
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@reminix/runtime": "^0.0.
|
|
49
|
+
"@reminix/runtime": "^0.0.4"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"@anthropic-ai/sdk": ">=0.71.0"
|