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.
309
+
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
310
311
311
### Monitoring with Metrics
312
312
@@ -494,7 +494,7 @@ End-to-end examples covering all APIs for each domain:
Copy file name to clipboardExpand all lines: docs/WORKER.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -610,7 +610,7 @@ class SimpleCppWorker(WorkerInterface):
610
610
611
611
## Long-Running Tasks and Lease Extension
612
612
613
-
For tasks that take longer than the configured `responseTimeoutSeconds`, the SDK provides automatic lease extension to prevent timeouts. See the comprehensive [Lease Extension Guide](../LEASE_EXTENSION.md) for:
613
+
For tasks that take longer than the configured `responseTimeoutSeconds`, the SDK provides automatic lease extension to prevent timeouts. See the comprehensive [Lease Extension Guide](LEASE_EXTENSION.md) for:
Copy file name to clipboardExpand all lines: docs/agents/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
# Agentspan Python SDK
1
+
# Conductor Agent Python SDK
2
2
3
3
> Ships as part of [`conductor-python`](https://pypi.org/project/conductor-python/) — install with the `agents` extra
4
4
> (`pip install 'conductor-python[agents]'`) — you're in the right place.
5
5
6
-
Long-running, dynamic plan-execute, and event-driven AI agents in Python. You write plain Python; Agentspan compiles your agent into a Conductor workflow that runs on a server — with automatic retries, durable state, human-in-the-loop pauses, streaming, scheduling, dynamic plan-execute, and full execution history.
6
+
Long-running, dynamic plan-execute, and event-driven AI agents in Python. You write plain Python; Conductor Agent compiles your agent into a Conductor workflow that runs on a server — with automatic retries, durable state, human-in-the-loop pauses, streaming, scheduling, dynamic plan-execute, and full execution history.
7
7
8
8
```python
9
9
from conductor.ai.agents import Agent, AgentRuntime
|`serve`|`(*agents, packages=None, blocking=True) -> None`| Register agent(s) on the server **and** serve/poll their workers (`serve` = `deploy` + serve)|
41
41
|`plan`|`(agent) -> dict`| Compile to workflow def |
0 commit comments