You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`AgentRuntime`| User-facing facade: `run`/`start`/`stream`/`deploy`/`serve`/`plan` (+ async). Composes a `Configuration`, `AgentConfig`, `AgentClient`, and a `WorkerManager`. |
287
+
|`AgentClient` (interface) + `OrkesAgentClient`| Control plane (compile/deploy/start/status/stream/respond/stop/signal). Built on the **standard `ApiClient`** — reuses its token management; no separate token cache. Same interface + Orkes-impl pattern as the domain clients (Phase 2). |
288
+
|`AgentConfig`| Agent-runtime **behaviour** only (worker pool, liveness, streaming, integration auto-register). Connection/auth/log level come from `Configuration`. |
289
+
|`RunSettings`| Per-run LLM overrides (`model`/`temperature`/`max_tokens`/…) for a single `run`/`start`; applied to the serialized agent config before start. |
290
+
| Framework adapters | Run agents authored in LangChain / LangGraph / OpenAI Agents SDK / Claude Agent SDK on the durable runtime as spawn-safe passthrough workers. |
291
+
292
+
### Verb Contract
293
+
294
+
| Method | Blocks | Returns | Starts workers | Registers on server |
295
+
|---|---|---|---|---|
296
+
|`run`| yes | result (output + ids) | yes | via start |
297
+
|`start`| no | handle (`execution_id`) | yes | via start |
-**Single token authority** — control plane *and* worker-side agent posts reuse the one `ApiClient`'s mint/cache/TTL-refresh/401-retry; never a parallel token cache. In spawned workers, rebuild + cache a client per `(server_url, auth_key)`.
305
+
-**Spawn-safety** — tool/worker callables must be module-level (importable/picklable), never `<locals>` closures; entry scripts use a main-module guard.
306
+
-**Credentials** — declared per tool; the server resolves + delivers them on wire-only `Task.runtimeMetadata`; injected into the worker env for the call, never read from ambient env.
307
+
-**Config single-source** — connection/auth/log level live on `Configuration`; `AgentConfig` is behaviour-only.
308
+
309
+
### Package Additions
310
+
311
+
```
312
+
src/conductor/
313
+
├── client/
314
+
│ ├── agent_client.{ext} # AgentClient interface
315
+
│ └── orkes/orkes_agent_client.{ext} # OrkesAgentClient (on ApiClient)
316
+
└── ai/agents/ # agent authoring + runtime
317
+
├── agent.{ext}, run_settings.{ext}
318
+
├── runtime/ (runtime, config, worker_manager)
319
+
├── _internal/agent_http.{ext} # single token authority for /agent/* posts
Disabled by default. Enable per-worker via decorator, constructor, or environment variable (`conductor_worker_<task>_lease_extend_enabled=true`). See [LEASE_EXTENSION.md](LEASE_EXTENSION.md) for the full guide.
311
+
Disabled by default. Enable per-worker via decorator, constructor, or environment variable (`conductor_worker_<task>_lease_extend_enabled=true`). See [LEASE_EXTENSION.md](docs/LEASE_EXTENSION.md) for the full guide.
310
312
311
313
### Monitoring with Metrics
312
314
@@ -494,7 +496,7 @@ End-to-end examples covering all APIs for each domain:
0 commit comments