@openenthrium/oe-runtime 1.7.2 → 1.7.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 +19 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -201,12 +201,21 @@ All endpoints require the `x-api-key` header when `server.apiKey` is set in your
|
|
|
201
201
|
| `POST` | `/webhook/telegram` | Telegram webhook receiver (enabled via `server.webhook`) |
|
|
202
202
|
| `POST` | `/webhook/slack` | Slack webhook receiver (enabled via `server.webhook`) |
|
|
203
203
|
|
|
204
|
-
**POST /run
|
|
204
|
+
**POST /run** — body (inline YAML):
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"yaml": "name: My Agent\nsteps:\n - name: Run\n content: Execute the task",
|
|
208
|
+
"params": {},
|
|
209
|
+
"input": "run"
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**POST /run-file** — body (file path on server disk):
|
|
205
214
|
```json
|
|
206
215
|
{
|
|
207
216
|
"file": "/path/to/agent.yaml",
|
|
208
217
|
"params": { "topic": "AI trends" },
|
|
209
|
-
"input": "
|
|
218
|
+
"input": "run"
|
|
210
219
|
}
|
|
211
220
|
```
|
|
212
221
|
|
|
@@ -240,11 +249,17 @@ Response:
|
|
|
240
249
|
# Health check
|
|
241
250
|
curl http://localhost:3333/health -H "x-api-key: your-secret"
|
|
242
251
|
|
|
243
|
-
# Run agent from
|
|
252
|
+
# Run agent from inline YAML
|
|
253
|
+
curl -X POST http://localhost:3333/run \
|
|
254
|
+
-H "x-api-key: your-secret" \
|
|
255
|
+
-H "Content-Type: application/json" \
|
|
256
|
+
-d '{"yaml": "name: Hi\nsteps:\n - name: Greet\n content: Say hi!", "params": {}, "input": "run"}'
|
|
257
|
+
|
|
258
|
+
# Run agent from file on disk (with chain support)
|
|
244
259
|
curl -X POST http://localhost:3333/run-file \
|
|
245
260
|
-H "x-api-key: your-secret" \
|
|
246
261
|
-H "Content-Type: application/json" \
|
|
247
|
-
-d '{"file":"/path/to/agent.yaml"}'
|
|
262
|
+
-d '{"file": "/path/to/agent.yaml", "params": {}, "input": "run"}'
|
|
248
263
|
|
|
249
264
|
# Approve a pending manual chain
|
|
250
265
|
curl -X POST http://localhost:3333/approve-chain \
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openenthrium/oe-runtime",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "OE Runtime - run AI agents against enterprise data sources. One binary, one YAML agent, one config file.",
|
|
5
5
|
"homepage": "https://www.openenthrium.com/runtime.html",
|
|
6
6
|
"repository": {
|