@artinet/fleet 0.1.0-canary.6 → 0.1.0
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 +94 -38
- package/dist/default.d.ts +20 -22
- package/dist/routes/create/index.d.ts +33 -37
- package/dist/routes/request/implementation/invoke.js +9 -9
- package/dist/routes/request/implementation/load.js +3 -3
- package/dist/routes/request/implementation/request.js +16 -7
- package/dist/routes/request/interceptors/get-agents.js +7 -7
- package/dist/routes/request/types/definitions.d.ts +14 -16
- package/dist/server/express/server.js +1 -1
- package/dist/server/hono/server.js +1 -1
- package/dist/storage/in-memory.js +2 -2
- package/dist/storage/sqlite.d.ts +43 -123
- package/dist/storage/sqlite.js +21 -32
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
|
|
2
|
+
<a href="https://artinet.io"><img src="https://img.shields.io/badge/website-artinet.io-black" alt="Website"></a>
|
|
3
3
|
<a href="https://www.npmjs.com/package/@artinet/fleet"><img src="https://img.shields.io/npm/v/@artinet/fleet?color=black" alt="Downloads"></a>
|
|
4
4
|
<a><img src="https://img.shields.io/badge/License-Apache_2.0-black.svg" alt="License"></a>
|
|
5
5
|
<a href="https://snyk.io/test/npm/@artinet/fleet"><img src="https://snyk.io/test/npm/@artinet/fleet/badge.svg" alt="Known Vulnerabilities"></a>
|
|
@@ -16,21 +16,6 @@ Fleet is a lightweight server framework for hosting [A2A Protocol](https://githu
|
|
|
16
16
|
npm install @artinet/fleet openai @modelcontextprotocol/sdk @a2a-js/sdk
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
## Configuration
|
|
20
|
-
|
|
21
|
-
Copy the example and fill in your values:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
cp .env.example .env
|
|
25
|
-
# Edit .env with your API keys
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Run:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
docker run --env-file .env -v fleet-data:/data artinet-fleet
|
|
32
|
-
```
|
|
33
|
-
|
|
34
19
|
**Requirements:** Node.js ≥ 18.9.1
|
|
35
20
|
|
|
36
21
|
## Quick Start
|
|
@@ -48,7 +33,7 @@ npm install express
|
|
|
48
33
|
```typescript
|
|
49
34
|
import { fleet } from "@artinet/fleet/express";
|
|
50
35
|
|
|
51
|
-
|
|
36
|
+
fleet().launch(3000);
|
|
52
37
|
```
|
|
53
38
|
|
|
54
39
|
**Hono**:
|
|
@@ -60,7 +45,7 @@ npm install hono
|
|
|
60
45
|
```typescript
|
|
61
46
|
import { fleet } from "@artinet/fleet/hono";
|
|
62
47
|
|
|
63
|
-
|
|
48
|
+
fleet().launch(3000);
|
|
64
49
|
```
|
|
65
50
|
|
|
66
51
|
> 🚧 **More servers coming soon** — Bun adapters and edge support are on the roadmap.
|
|
@@ -91,7 +76,7 @@ const myFleet = await fleet().ship([
|
|
|
91
76
|
myFleet.launch(3000);
|
|
92
77
|
```
|
|
93
78
|
|
|
94
|
-
**Ship**:
|
|
79
|
+
**Post Launch, Ship**:
|
|
95
80
|
|
|
96
81
|
```typescript
|
|
97
82
|
import { ship } from "@artinet/fleet";
|
|
@@ -125,7 +110,6 @@ curl -X POST http://localhost:3000/deploy \
|
|
|
125
110
|
"type": "mcp",
|
|
126
111
|
"uri": "everything-server-1",
|
|
127
112
|
"info": {
|
|
128
|
-
"uri": "everything-server-1",
|
|
129
113
|
"implementation": {
|
|
130
114
|
"version": "0.0.1",
|
|
131
115
|
"name": "everything"
|
|
@@ -170,21 +154,93 @@ curl -X POST http://localhost:3000/agentId/my-agent \
|
|
|
170
154
|
or via the [sdk](https://github.com/the-artinet-project/artinet-sdk):
|
|
171
155
|
|
|
172
156
|
```typescript
|
|
173
|
-
import {
|
|
157
|
+
import { createMessenger } from "@artinet/sdk";
|
|
174
158
|
|
|
175
|
-
const
|
|
159
|
+
const messenger = createMessenger({
|
|
160
|
+
baseUrl: "http://localhost:3000/agentId/my-agent",
|
|
161
|
+
});
|
|
176
162
|
|
|
177
163
|
// Send a message
|
|
178
|
-
const response = await
|
|
164
|
+
const response = await messenger.sendMessage("Hello!");
|
|
179
165
|
|
|
180
166
|
console.log(response);
|
|
181
167
|
|
|
182
168
|
// Or stream the response
|
|
183
|
-
for await (const update of
|
|
169
|
+
for await (const update of messenger.sendMessageStream("Tell me a story")) {
|
|
184
170
|
console.log(update);
|
|
185
171
|
}
|
|
186
172
|
```
|
|
187
173
|
|
|
174
|
+
### SQLite Storage
|
|
175
|
+
|
|
176
|
+
Set up a SQLite Database with [drizzle](https://www.npmjs.com/package/drizzle-orm):
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
npm install drizzle-orm better-sqlite3
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
import { SQLiteStore, AgentsTable } from "@artinet/fleet/sqlite";
|
|
184
|
+
import { fleet } from "@artinet/fleet/hono";
|
|
185
|
+
/*Use any drizzle compatible Database*/
|
|
186
|
+
import Database from "better-sqlite3";
|
|
187
|
+
import { drizzle } from "drizzle-orm/better-sqlite3";
|
|
188
|
+
|
|
189
|
+
const sqlite = new Database("fleet.db");
|
|
190
|
+
const db = drizzle<AgentsTable>(sqlite);
|
|
191
|
+
|
|
192
|
+
fleet({
|
|
193
|
+
storage: new SQLiteStore(db),
|
|
194
|
+
}).launch(3000);
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Logging
|
|
198
|
+
|
|
199
|
+
Setup a custom logger via the [@artinet/sdk](https://www.npmjs.com/package/@artinet/sdk):
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
npm install @artinet/sdk pino pino-pretty
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
```typescript
|
|
206
|
+
import { configure } from "@artinet/sdk";
|
|
207
|
+
import { configurePino } from "@artinet/sdk/pino";
|
|
208
|
+
import pino from "pino";
|
|
209
|
+
|
|
210
|
+
configure({
|
|
211
|
+
logger: configurePino(
|
|
212
|
+
pino({
|
|
213
|
+
level: "info",
|
|
214
|
+
transport: {
|
|
215
|
+
target: "pino-pretty",
|
|
216
|
+
options: { colorize: true },
|
|
217
|
+
},
|
|
218
|
+
})
|
|
219
|
+
),
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## [Docker Configuration](https://github.com/the-artinet-project/artinet/blob/main/fleet/dockerfile)
|
|
224
|
+
|
|
225
|
+
Build the docker image:
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
docker build -t artinet-fleet .
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Copy the example and fill in your values:
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
cp .env.example .env
|
|
235
|
+
# Edit .env with your API keys
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Run:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
docker run --env-file .env -v fleet-data:/data -p 3000:3000 -e PORT=3000 artinet-fleet
|
|
242
|
+
```
|
|
243
|
+
|
|
188
244
|
<!-- ## Custom Handlers
|
|
189
245
|
|
|
190
246
|
```typescript
|
|
@@ -223,17 +279,17 @@ const app = fleet(
|
|
|
223
279
|
app.listen(3000);
|
|
224
280
|
``` -->
|
|
225
281
|
|
|
226
|
-
##
|
|
282
|
+
## Settings
|
|
227
283
|
|
|
228
|
-
| Option | Type | Default
|
|
229
|
-
| ---------------------- | ------------ |
|
|
230
|
-
| `storage` | `IDataStore` | `InMemoryStore` | Agent storage backend (storage adapters coming soon) |
|
|
231
|
-
| `basePath` | `string` | `"/"`
|
|
232
|
-
| `agentPath` | `string` | `"/agentId"`
|
|
233
|
-
| `deploymentPath` | `string` | `"/deploy"`
|
|
234
|
-
| `testPath` | `string` | `"/test"`
|
|
235
|
-
| `inferenceProviderUrl` | `string` | `undefined`
|
|
236
|
-
| `load` | `function` | `loadAgent`
|
|
284
|
+
| Option | Type | Default | Description |
|
|
285
|
+
| ---------------------- | ------------ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
286
|
+
| `storage` | `IDataStore` | `InMemoryStore`, `SQLiteStore` | Agent storage backend (storage adapters coming soon) |
|
|
287
|
+
| `basePath` | `string` | `"/"` | Base path for all routes |
|
|
288
|
+
| `agentPath` | `string` | `"/agentId"` | Agent interaction path |
|
|
289
|
+
| `deploymentPath` | `string` | `"/deploy"` | Deployment endpoint |
|
|
290
|
+
| `testPath` | `string` | `"/test"` | Test endpoint |
|
|
291
|
+
| `inferenceProviderUrl` | `string` | `undefined` | An OpenAI API compatible endpoint |
|
|
292
|
+
| `load` | `function` | `loadAgent` | Returns an A2A Protocol compliant agent wrapped in the [`@artinet/sdk`](<(https://github.com/the-artinet-project/artinet-sdk)>) |
|
|
237
293
|
|
|
238
294
|
## API Reference
|
|
239
295
|
|
|
@@ -242,7 +298,7 @@ app.listen(3000);
|
|
|
242
298
|
| Method | Path | Description |
|
|
243
299
|
| ------ | ------------------------------------------ | -------------------- |
|
|
244
300
|
| POST | `/deploy` | Deploy a new agent |
|
|
245
|
-
| POST | `/test` | Test
|
|
301
|
+
| POST | `/test` | Test a new agent |
|
|
246
302
|
| GET | `/agentId/:id/.well-known/agent-card.json` | Get agent card |
|
|
247
303
|
| POST | `/agentId/:id` | JSON-RPC interaction |
|
|
248
304
|
|
|
@@ -261,14 +317,14 @@ app.listen(3000);
|
|
|
261
317
|
```
|
|
262
318
|
|
|
263
319
|
@artinet/fleet
|
|
264
|
-
├── /express # Express adapter
|
|
265
|
-
├── /hono #
|
|
320
|
+
├── /express # Express adapter
|
|
321
|
+
├── /hono # Hono adapter
|
|
266
322
|
└── /bun # Coming soon
|
|
267
323
|
|
|
268
324
|
Depends on:
|
|
269
325
|
├── @artinet/armada # Core business logic
|
|
270
326
|
├── @artinet/sdk # A2A protocol client/server
|
|
271
|
-
├── orc8 # Agent orchestration
|
|
327
|
+
├── orc8 # Agent/Tool orchestration
|
|
272
328
|
├── agent-def # Standardized Agent Definitions
|
|
273
329
|
├── openai # OpenAI API Client
|
|
274
330
|
└── @mcp # @modelcontextprotocol/sdk
|
package/dist/default.d.ts
CHANGED
|
@@ -23,13 +23,13 @@ export declare const DEFAULTS: {
|
|
|
23
23
|
outputModes?: string[] | undefined;
|
|
24
24
|
security?: Record<string, string[]>[] | undefined;
|
|
25
25
|
}[];
|
|
26
|
+
schemaVersion: "0.1.0";
|
|
26
27
|
instructions: string;
|
|
27
28
|
services: ({
|
|
28
29
|
url: string;
|
|
29
30
|
uri: string;
|
|
30
31
|
type: "a2a";
|
|
31
32
|
info: {
|
|
32
|
-
uri: string;
|
|
33
33
|
protocolVersion: string;
|
|
34
34
|
name: string;
|
|
35
35
|
description: string;
|
|
@@ -59,6 +59,7 @@ export declare const DEFAULTS: {
|
|
|
59
59
|
security?: Record<string, string[]>[] | undefined;
|
|
60
60
|
}[];
|
|
61
61
|
id?: string | undefined;
|
|
62
|
+
uri?: string | undefined;
|
|
62
63
|
preferredTransport?: string | undefined;
|
|
63
64
|
additionalInterfaces?: {
|
|
64
65
|
url: string;
|
|
@@ -72,7 +73,7 @@ export declare const DEFAULTS: {
|
|
|
72
73
|
documentationUrl?: string | undefined;
|
|
73
74
|
securitySchemes?: Record<string, {
|
|
74
75
|
type: "apiKey";
|
|
75
|
-
in: "
|
|
76
|
+
in: "query" | "header" | "cookie";
|
|
76
77
|
name: string;
|
|
77
78
|
description?: string | undefined;
|
|
78
79
|
} | {
|
|
@@ -131,7 +132,6 @@ export declare const DEFAULTS: {
|
|
|
131
132
|
uri: string;
|
|
132
133
|
type: "a2a";
|
|
133
134
|
info: {
|
|
134
|
-
uri: string;
|
|
135
135
|
protocolVersion: string;
|
|
136
136
|
name: string;
|
|
137
137
|
description: string;
|
|
@@ -161,6 +161,7 @@ export declare const DEFAULTS: {
|
|
|
161
161
|
security?: Record<string, string[]>[] | undefined;
|
|
162
162
|
}[];
|
|
163
163
|
id?: string | undefined;
|
|
164
|
+
uri?: string | undefined;
|
|
164
165
|
preferredTransport?: string | undefined;
|
|
165
166
|
additionalInterfaces?: {
|
|
166
167
|
url: string;
|
|
@@ -174,7 +175,7 @@ export declare const DEFAULTS: {
|
|
|
174
175
|
documentationUrl?: string | undefined;
|
|
175
176
|
securitySchemes?: Record<string, {
|
|
176
177
|
type: "apiKey";
|
|
177
|
-
in: "
|
|
178
|
+
in: "query" | "header" | "cookie";
|
|
178
179
|
name: string;
|
|
179
180
|
description?: string | undefined;
|
|
180
181
|
} | {
|
|
@@ -235,7 +236,6 @@ export declare const DEFAULTS: {
|
|
|
235
236
|
uri: string;
|
|
236
237
|
type: "mcp";
|
|
237
238
|
info: {
|
|
238
|
-
uri: string;
|
|
239
239
|
implementation: {
|
|
240
240
|
version: string;
|
|
241
241
|
name: string;
|
|
@@ -351,6 +351,7 @@ export declare const DEFAULTS: {
|
|
|
351
351
|
title?: string | undefined;
|
|
352
352
|
}[];
|
|
353
353
|
id?: string | undefined;
|
|
354
|
+
uri?: string | undefined;
|
|
354
355
|
instructions?: string | undefined;
|
|
355
356
|
};
|
|
356
357
|
id?: string | undefined;
|
|
@@ -360,9 +361,16 @@ export declare const DEFAULTS: {
|
|
|
360
361
|
} | {
|
|
361
362
|
uri: string;
|
|
362
363
|
type: "mcp";
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
id?: string | undefined;
|
|
365
|
+
url?: string | undefined;
|
|
366
|
+
headers?: Record<string, string> | undefined;
|
|
367
|
+
authToken?: string | undefined;
|
|
368
|
+
parameters?: Record<string, unknown> | undefined;
|
|
369
|
+
arguments?: unknown;
|
|
370
|
+
info?: {
|
|
371
|
+
id?: string | undefined;
|
|
372
|
+
uri?: string | undefined;
|
|
373
|
+
implementation?: {
|
|
366
374
|
version: string;
|
|
367
375
|
name: string;
|
|
368
376
|
websiteUrl?: string | undefined;
|
|
@@ -374,8 +382,7 @@ export declare const DEFAULTS: {
|
|
|
374
382
|
theme?: "light" | "dark" | undefined;
|
|
375
383
|
}[] | undefined;
|
|
376
384
|
title?: string | undefined;
|
|
377
|
-
};
|
|
378
|
-
id?: string | undefined;
|
|
385
|
+
} | undefined;
|
|
379
386
|
serverCapabilities?: {
|
|
380
387
|
experimental?: Record<string, object> | undefined;
|
|
381
388
|
logging?: object | undefined;
|
|
@@ -478,13 +485,7 @@ export declare const DEFAULTS: {
|
|
|
478
485
|
title?: string | undefined;
|
|
479
486
|
}[] | undefined;
|
|
480
487
|
instructions?: string | undefined;
|
|
481
|
-
};
|
|
482
|
-
id?: string | undefined;
|
|
483
|
-
url?: string | undefined;
|
|
484
|
-
headers?: Record<string, string> | undefined;
|
|
485
|
-
authToken?: string | undefined;
|
|
486
|
-
parameters?: Record<string, unknown> | undefined;
|
|
487
|
-
arguments?: unknown;
|
|
488
|
+
} | undefined;
|
|
488
489
|
})[];
|
|
489
490
|
protocolVersion?: string | undefined;
|
|
490
491
|
url?: string | undefined;
|
|
@@ -512,7 +513,7 @@ export declare const DEFAULTS: {
|
|
|
512
513
|
} | undefined;
|
|
513
514
|
securitySchemes?: Record<string, {
|
|
514
515
|
type: "apiKey";
|
|
515
|
-
in: "
|
|
516
|
+
in: "query" | "header" | "cookie";
|
|
516
517
|
name: string;
|
|
517
518
|
description?: string | undefined;
|
|
518
519
|
} | {
|
|
@@ -566,10 +567,7 @@ export declare const DEFAULTS: {
|
|
|
566
567
|
}[] | undefined;
|
|
567
568
|
id?: string | undefined;
|
|
568
569
|
modelId?: string | undefined;
|
|
569
|
-
modelUri?: string | undefined;
|
|
570
|
-
toolIds?: string[] | undefined;
|
|
571
570
|
toolUris?: string[] | undefined;
|
|
572
|
-
agentIds?: string[] | undefined;
|
|
573
571
|
agentUris?: string[] | undefined;
|
|
574
572
|
groupIds?: (string | {
|
|
575
573
|
id: string;
|
|
@@ -631,7 +629,7 @@ export declare const DEFAULTS: {
|
|
|
631
629
|
documentationUrl?: string | undefined;
|
|
632
630
|
securitySchemes?: Record<string, {
|
|
633
631
|
type: "apiKey";
|
|
634
|
-
in: "
|
|
632
|
+
in: "query" | "header" | "cookie";
|
|
635
633
|
name: string;
|
|
636
634
|
description?: string | undefined;
|
|
637
635
|
} | {
|
|
@@ -16,13 +16,13 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
16
16
|
outputModes?: string[] | undefined;
|
|
17
17
|
security?: Record<string, string[]>[] | undefined;
|
|
18
18
|
}[];
|
|
19
|
+
schemaVersion: "0.1.0";
|
|
19
20
|
instructions: string;
|
|
20
21
|
services: ({
|
|
21
22
|
url: string;
|
|
22
23
|
uri: string;
|
|
23
24
|
type: "a2a";
|
|
24
25
|
info: {
|
|
25
|
-
uri: string;
|
|
26
26
|
protocolVersion: string;
|
|
27
27
|
name: string;
|
|
28
28
|
description: string;
|
|
@@ -52,6 +52,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
52
52
|
security?: Record<string, string[]>[] | undefined;
|
|
53
53
|
}[];
|
|
54
54
|
id?: string | undefined;
|
|
55
|
+
uri?: string | undefined;
|
|
55
56
|
preferredTransport?: string | undefined;
|
|
56
57
|
additionalInterfaces?: {
|
|
57
58
|
url: string;
|
|
@@ -65,7 +66,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
65
66
|
documentationUrl?: string | undefined;
|
|
66
67
|
securitySchemes?: Record<string, {
|
|
67
68
|
type: "apiKey";
|
|
68
|
-
in: "
|
|
69
|
+
in: "query" | "header" | "cookie";
|
|
69
70
|
name: string;
|
|
70
71
|
description?: string | undefined;
|
|
71
72
|
} | {
|
|
@@ -124,7 +125,6 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
124
125
|
uri: string;
|
|
125
126
|
type: "a2a";
|
|
126
127
|
info: {
|
|
127
|
-
uri: string;
|
|
128
128
|
protocolVersion: string;
|
|
129
129
|
name: string;
|
|
130
130
|
description: string;
|
|
@@ -154,6 +154,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
154
154
|
security?: Record<string, string[]>[] | undefined;
|
|
155
155
|
}[];
|
|
156
156
|
id?: string | undefined;
|
|
157
|
+
uri?: string | undefined;
|
|
157
158
|
preferredTransport?: string | undefined;
|
|
158
159
|
additionalInterfaces?: {
|
|
159
160
|
url: string;
|
|
@@ -167,7 +168,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
167
168
|
documentationUrl?: string | undefined;
|
|
168
169
|
securitySchemes?: Record<string, {
|
|
169
170
|
type: "apiKey";
|
|
170
|
-
in: "
|
|
171
|
+
in: "query" | "header" | "cookie";
|
|
171
172
|
name: string;
|
|
172
173
|
description?: string | undefined;
|
|
173
174
|
} | {
|
|
@@ -228,7 +229,6 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
228
229
|
uri: string;
|
|
229
230
|
type: "mcp";
|
|
230
231
|
info: {
|
|
231
|
-
uri: string;
|
|
232
232
|
implementation: {
|
|
233
233
|
version: string;
|
|
234
234
|
name: string;
|
|
@@ -344,6 +344,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
344
344
|
title?: string | undefined;
|
|
345
345
|
}[];
|
|
346
346
|
id?: string | undefined;
|
|
347
|
+
uri?: string | undefined;
|
|
347
348
|
instructions?: string | undefined;
|
|
348
349
|
};
|
|
349
350
|
id?: string | undefined;
|
|
@@ -353,9 +354,16 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
353
354
|
} | {
|
|
354
355
|
uri: string;
|
|
355
356
|
type: "mcp";
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
id?: string | undefined;
|
|
358
|
+
url?: string | undefined;
|
|
359
|
+
headers?: Record<string, string> | undefined;
|
|
360
|
+
authToken?: string | undefined;
|
|
361
|
+
parameters?: Record<string, unknown> | undefined;
|
|
362
|
+
arguments?: unknown;
|
|
363
|
+
info?: {
|
|
364
|
+
id?: string | undefined;
|
|
365
|
+
uri?: string | undefined;
|
|
366
|
+
implementation?: {
|
|
359
367
|
version: string;
|
|
360
368
|
name: string;
|
|
361
369
|
websiteUrl?: string | undefined;
|
|
@@ -367,8 +375,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
367
375
|
theme?: "light" | "dark" | undefined;
|
|
368
376
|
}[] | undefined;
|
|
369
377
|
title?: string | undefined;
|
|
370
|
-
};
|
|
371
|
-
id?: string | undefined;
|
|
378
|
+
} | undefined;
|
|
372
379
|
serverCapabilities?: {
|
|
373
380
|
experimental?: Record<string, object> | undefined;
|
|
374
381
|
logging?: object | undefined;
|
|
@@ -471,13 +478,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
471
478
|
title?: string | undefined;
|
|
472
479
|
}[] | undefined;
|
|
473
480
|
instructions?: string | undefined;
|
|
474
|
-
};
|
|
475
|
-
id?: string | undefined;
|
|
476
|
-
url?: string | undefined;
|
|
477
|
-
headers?: Record<string, string> | undefined;
|
|
478
|
-
authToken?: string | undefined;
|
|
479
|
-
parameters?: Record<string, unknown> | undefined;
|
|
480
|
-
arguments?: unknown;
|
|
481
|
+
} | undefined;
|
|
481
482
|
})[];
|
|
482
483
|
protocolVersion?: string | undefined;
|
|
483
484
|
url?: string | undefined;
|
|
@@ -505,7 +506,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
505
506
|
} | undefined;
|
|
506
507
|
securitySchemes?: Record<string, {
|
|
507
508
|
type: "apiKey";
|
|
508
|
-
in: "
|
|
509
|
+
in: "query" | "header" | "cookie";
|
|
509
510
|
name: string;
|
|
510
511
|
description?: string | undefined;
|
|
511
512
|
} | {
|
|
@@ -559,10 +560,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
559
560
|
}[] | undefined;
|
|
560
561
|
id?: string | undefined;
|
|
561
562
|
modelId?: string | undefined;
|
|
562
|
-
modelUri?: string | undefined;
|
|
563
|
-
toolIds?: string[] | undefined;
|
|
564
563
|
toolUris?: string[] | undefined;
|
|
565
|
-
agentIds?: string[] | undefined;
|
|
566
564
|
agentUris?: string[] | undefined;
|
|
567
565
|
groupIds?: (string | {
|
|
568
566
|
id: string;
|
|
@@ -624,7 +622,7 @@ export declare const CreateAgent: armada.Implementation<{
|
|
|
624
622
|
documentationUrl?: string | undefined;
|
|
625
623
|
securitySchemes?: Record<string, {
|
|
626
624
|
type: "apiKey";
|
|
627
|
-
in: "
|
|
625
|
+
in: "query" | "header" | "cookie";
|
|
628
626
|
name: string;
|
|
629
627
|
description?: string | undefined;
|
|
630
628
|
} | {
|
|
@@ -687,7 +685,7 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
687
685
|
timestamp: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
688
686
|
agentId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
689
687
|
config: import("zod/v4").ZodObject<{
|
|
690
|
-
uri: import("zod/v4").ZodString
|
|
688
|
+
uri: import("zod/v4").ZodNonOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
|
691
689
|
protocolVersion: import("zod/v4").ZodOptional<import("zod/v4").ZodDefault<import("zod/v4").ZodString>>;
|
|
692
690
|
name: import("zod/v4").ZodString;
|
|
693
691
|
description: import("zod/v4").ZodString;
|
|
@@ -727,8 +725,8 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
727
725
|
description: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
728
726
|
type: import("zod/v4").ZodLiteral<"apiKey">;
|
|
729
727
|
in: import("zod/v4").ZodEnum<{
|
|
730
|
-
header: "header";
|
|
731
728
|
query: "query";
|
|
729
|
+
header: "header";
|
|
732
730
|
cookie: "cookie";
|
|
733
731
|
}>;
|
|
734
732
|
name: import("zod/v4").ZodString;
|
|
@@ -791,12 +789,10 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
791
789
|
signature: import("zod/v4").ZodString;
|
|
792
790
|
header: import("zod/v4").ZodOptional<import("zod/v4").ZodRecord<import("zod/v4").ZodString, import("zod/v4").ZodUnknown>>;
|
|
793
791
|
}, import("zod/v4/core").$strip>>>;
|
|
792
|
+
schemaVersion: import("zod/v4").ZodLiteral<"0.1.0">;
|
|
794
793
|
id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
795
794
|
modelId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
796
|
-
modelUri: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
797
|
-
toolIds: import("zod/v4").ZodOptional<import("zod/v4").ZodArray<import("zod/v4").ZodString>>;
|
|
798
795
|
toolUris: import("zod/v4").ZodOptional<import("zod/v4").ZodArray<import("zod/v4").ZodString>>;
|
|
799
|
-
agentIds: import("zod/v4").ZodOptional<import("zod/v4").ZodArray<import("zod/v4").ZodString>>;
|
|
800
796
|
agentUris: import("zod/v4").ZodOptional<import("zod/v4").ZodArray<import("zod/v4").ZodString>>;
|
|
801
797
|
groupIds: import("zod/v4").ZodOptional<import("zod/v4").ZodArray<import("zod/v4").ZodUnion<readonly [import("zod/v4").ZodString, import("zod/v4").ZodObject<{
|
|
802
798
|
id: import("zod/v4").ZodString;
|
|
@@ -813,7 +809,7 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
813
809
|
type: import("zod/v4").ZodDefault<import("zod/v4").ZodLiteral<"a2a">>;
|
|
814
810
|
info: import("zod/v4").ZodObject<{
|
|
815
811
|
id: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
|
816
|
-
uri: import("zod/v4").ZodString
|
|
812
|
+
uri: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
817
813
|
protocolVersion: import("zod/v4").ZodDefault<import("zod/v4").ZodString>;
|
|
818
814
|
name: import("zod/v4").ZodString;
|
|
819
815
|
description: import("zod/v4").ZodString;
|
|
@@ -853,8 +849,8 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
853
849
|
description: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
854
850
|
type: import("zod/v4").ZodLiteral<"apiKey">;
|
|
855
851
|
in: import("zod/v4").ZodEnum<{
|
|
856
|
-
header: "header";
|
|
857
852
|
query: "query";
|
|
853
|
+
header: "header";
|
|
858
854
|
cookie: "cookie";
|
|
859
855
|
}>;
|
|
860
856
|
name: import("zod/v4").ZodString;
|
|
@@ -928,7 +924,7 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
928
924
|
type: import("zod/v4").ZodDefault<import("zod/v4").ZodLiteral<"a2a">>;
|
|
929
925
|
info: import("zod/v4").ZodObject<{
|
|
930
926
|
id: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
|
931
|
-
uri: import("zod/v4").ZodString
|
|
927
|
+
uri: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
932
928
|
protocolVersion: import("zod/v4").ZodDefault<import("zod/v4").ZodString>;
|
|
933
929
|
name: import("zod/v4").ZodString;
|
|
934
930
|
description: import("zod/v4").ZodString;
|
|
@@ -968,8 +964,8 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
968
964
|
description: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
969
965
|
type: import("zod/v4").ZodLiteral<"apiKey">;
|
|
970
966
|
in: import("zod/v4").ZodEnum<{
|
|
971
|
-
header: "header";
|
|
972
967
|
query: "query";
|
|
968
|
+
header: "header";
|
|
973
969
|
cookie: "cookie";
|
|
974
970
|
}>;
|
|
975
971
|
name: import("zod/v4").ZodString;
|
|
@@ -1043,7 +1039,7 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
1043
1039
|
type: import("zod/v4").ZodDefault<import("zod/v4").ZodLiteral<"mcp">>;
|
|
1044
1040
|
info: import("zod/v4").ZodObject<{
|
|
1045
1041
|
id: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
|
1046
|
-
uri: import("zod/v4").ZodString
|
|
1042
|
+
uri: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
1047
1043
|
implementation: import("zod/v4").ZodObject<{
|
|
1048
1044
|
version: import("zod/v4").ZodString;
|
|
1049
1045
|
websiteUrl: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
@@ -1182,10 +1178,10 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
1182
1178
|
command: import("zod/v4").ZodString;
|
|
1183
1179
|
args: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
1184
1180
|
}, import("zod/v4/core").$strip>, import("zod/v4").ZodString, import("zod/v4").ZodUnknown]>>;
|
|
1185
|
-
info: import("zod/v4").ZodObject<{
|
|
1181
|
+
info: import("zod/v4").ZodOptional<import("zod/v4").ZodObject<{
|
|
1186
1182
|
id: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>>;
|
|
1187
|
-
uri: import("zod/v4").
|
|
1188
|
-
implementation: import("zod/v4").
|
|
1183
|
+
uri: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
|
1184
|
+
implementation: import("zod/v4").ZodOptional<import("zod/v4").ZodObject<{
|
|
1189
1185
|
version: import("zod/v4").ZodString;
|
|
1190
1186
|
websiteUrl: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
1191
1187
|
description: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
@@ -1200,7 +1196,7 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
1200
1196
|
}, import("zod/v4/core").$strip>>>;
|
|
1201
1197
|
name: import("zod/v4").ZodString;
|
|
1202
1198
|
title: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
1203
|
-
}, import("zod/v4/core").$strip
|
|
1199
|
+
}, import("zod/v4/core").$strip>>;
|
|
1204
1200
|
serverCapabilities: import("zod/v4").ZodOptional<import("zod/v4").ZodObject<{
|
|
1205
1201
|
experimental: import("zod/v4").ZodOptional<import("zod/v4").ZodRecord<import("zod/v4").ZodString, import("zod/v4").ZodCustom<object, object>>>;
|
|
1206
1202
|
logging: import("zod/v4").ZodOptional<import("zod/v4").ZodCustom<object, object>>;
|
|
@@ -1310,7 +1306,7 @@ export declare const CreateAgentRequestSchema: import("zod/v4").ZodObject<{
|
|
|
1310
1306
|
title: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
1311
1307
|
}, import("zod/v4/core").$strip>>>;
|
|
1312
1308
|
instructions: import("zod/v4").ZodOptional<import("zod/v4").ZodOptional<import("zod/v4").ZodString>>;
|
|
1313
|
-
}, import("zod/v4/core").$strip
|
|
1309
|
+
}, import("zod/v4/core").$strip>>;
|
|
1314
1310
|
}, import("zod/v4/core").$strip>]>]>>>;
|
|
1315
1311
|
metadata: import("zod/v4").ZodOptional<import("zod/v4").ZodRecord<import("zod/v4").ZodString, import("zod/v4").ZodString>>;
|
|
1316
1312
|
}, import("zod/v4/core").$strip>;
|