Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / OrchestratorServer

Class: OrchestratorServer

Defined in: orchestrator/server.ts:72

轻量 Orchestrator HTTP 服务(Node 内置 http,无需 Express/Fastify)。

路由:

  • GET /health
  • GET /workflows
  • POST /workflows/from-yaml
  • POST /workflows/:id/runs
  • GET /workflows/:id/runs/:runId
  • POST /workflows/:id/runs/:runId/resume
  • POST /workflows/:id/runs/:runId/hitl
  • GET /memory/search?q=...
  • POST /mcp(JSON-RPC MCP tools/call)

Constructors

Constructor

new OrchestratorServer(options): OrchestratorServer

Defined in: orchestrator/server.ts:82

Parameters

options

OrchestratorServerOptions

registry 与监听地址

Returns

OrchestratorServer

Methods

start()

start(): Promise<{ host: string; port: number; url: string; }>

Defined in: orchestrator/server.ts:94

开始监听。

Returns

Promise<{ host: string; port: number; url: string; }>

实际 host / port / url


stop()

stop(): Promise<void>

Defined in: orchestrator/server.ts:119

停止监听并关闭底层 HTTP server。

Returns

Promise<void>

MIT Licensed