@agentium/transport 1.0.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 +46 -0
- package/dist/index.cjs +2590 -0
- package/dist/index.d.cts +393 -0
- package/dist/index.d.ts +393 -0
- package/dist/index.js +2542 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @agentium/transport
|
|
2
|
+
|
|
3
|
+
HTTP and WebSocket transport layer for deploying Agentium agents as APIs.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @agentium/transport
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import express from "express";
|
|
15
|
+
import { Agent, openai } from "@agentium/core";
|
|
16
|
+
import { createAgentRouter } from "@agentium/transport";
|
|
17
|
+
|
|
18
|
+
const app = express();
|
|
19
|
+
app.use(express.json());
|
|
20
|
+
|
|
21
|
+
const agent = new Agent({
|
|
22
|
+
name: "assistant",
|
|
23
|
+
model: openai("gpt-4o"),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
app.use("/api", createAgentRouter({ agents: { assistant: agent } }));
|
|
27
|
+
app.listen(3000);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Features
|
|
31
|
+
|
|
32
|
+
- **Auto-Discovery** — Reads from the global `Registry` at request time; agents created after server start are immediately available
|
|
33
|
+
- **Express Router** — REST API with streaming support and list endpoints (`GET /agents`, `/teams`, `/workflows`, `/tools`)
|
|
34
|
+
- **Socket.IO Gateway** — Real-time WebSocket communication with dynamic agent/team lookup and tool discovery
|
|
35
|
+
- **A2A Server** — Agent-to-Agent protocol support
|
|
36
|
+
- **CORS & Rate Limiting** — Built-in security middleware
|
|
37
|
+
- **Swagger** — Auto-generated API documentation
|
|
38
|
+
- **File Upload** — Multipart form data support
|
|
39
|
+
|
|
40
|
+
## Documentation
|
|
41
|
+
|
|
42
|
+
Full docs at [agentium.mintlify.dev](https://agentium.mintlify.dev)
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
MIT
|