Skip to content

Commit 05b0f56

Browse files
Kowserclaude
andcommitted
Change AgentConfig default server_url from :6767 to :8080
Agentspan no longer runs as a separate server after this merge; agent execution is served by the standard Conductor server, whose own client (conductor.client.configuration.Configuration) already defaults to localhost:8080. Aligns AgentConfig/WorkerCredentialFetcher defaults and docs with that. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent eddc7f1 commit 05b0f56

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/agents/api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ available.
288288

289289
## Config and credentials
290290

291-
`AgentConfig` (dataclass) fields: `server_url="http://localhost:6767/api"`,
291+
`AgentConfig` (dataclass) fields: `server_url="http://localhost:8080/api"`,
292292
`api_key=None`, `auth_key=None`, `auth_secret=None`, `llm_retry_count=3`,
293293
`worker_poll_interval_ms=100`, `worker_thread_count=1`, `auto_start_workers=True`,
294294
`auto_start_server=True`, `daemon_workers=True`, `auto_register_integrations=False`,

docs/agents/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ pip install 'conductor-python[agents]'
1111
Or, per framework, install just what you need — e.g. `conductor-python[langchain]`,
1212
`conductor-python[adk]`, `conductor-python[claude]`.
1313

14-
Point the SDK at a running Agentspan server (defaults to `http://localhost:6767/api`):
14+
Point the SDK at a running Agentspan server (defaults to `http://localhost:8080/api`):
1515

1616
```bash
17-
export AGENTSPAN_SERVER_URL=http://localhost:6767/api
17+
export AGENTSPAN_SERVER_URL=http://localhost:8080/api
1818
export OPENAI_API_KEY=<YOUR-KEY>
1919
export AGENTSPAN_LLM_MODEL=openai/gpt-4o-mini
2020
```
@@ -52,7 +52,7 @@ the output if you prefer.
5252

5353
| Variable | Default | Purpose |
5454
|---|---|---|
55-
| `AGENTSPAN_SERVER_URL` | `http://localhost:6767/api` | Server base URL |
55+
| `AGENTSPAN_SERVER_URL` | `http://localhost:8080/api` | Server base URL |
5656
| `AGENTSPAN_API_KEY` || API key auth |
5757
| `AGENTSPAN_AUTH_KEY` || Key/secret auth — key |
5858
| `AGENTSPAN_AUTH_SECRET` || Key/secret auth — secret |

src/conductor/ai/agents/runtime/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class AgentConfig:
6666
log_level: Logging level for the agentspan logger.
6767
"""
6868

69-
server_url: str = "http://localhost:6767/api"
69+
server_url: str = "http://localhost:8080/api"
7070
api_key: Optional[str] = None
7171
auth_key: Optional[str] = None
7272
auth_secret: Optional[str] = None
@@ -101,7 +101,7 @@ def from_env(cls) -> AgentConfig:
101101
if isinstance(log_level, str) and log_level.strip() == "":
102102
log_level = "INFO"
103103
return cls(
104-
server_url=_env("AGENTSPAN_SERVER_URL", "http://localhost:6767/api"),
104+
server_url=_env("AGENTSPAN_SERVER_URL", "http://localhost:8080/api"),
105105
api_key=_env("AGENTSPAN_API_KEY"),
106106
auth_key=_env("AGENTSPAN_AUTH_KEY"),
107107
auth_secret=_env("AGENTSPAN_AUTH_SECRET"),

src/conductor/ai/agents/runtime/credentials/fetcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class WorkerCredentialFetcher:
2929
"""Fetches credentials for a worker task execution.
3030
3131
Args:
32-
server_url: Base URL of the agentspan server API (e.g. ``"http://localhost:6767/api"``).
32+
server_url: Base URL of the agentspan server API (e.g. ``"http://localhost:8080/api"``).
3333
api_key: Optional Bearer token or API key for the Authorization header.
3434
"""
3535

3636
def __init__(
3737
self,
38-
server_url: str = "http://localhost:6767/api",
38+
server_url: str = "http://localhost:8080/api",
3939
strict_mode: bool = False,
4040
api_key: Optional[str] = None,
4141
) -> None:

tests/ai/unit/test_config_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_reads_agentspan_server_url(self):
8484
def test_defaults_to_localhost_when_nothing_set(self):
8585
with mock.patch.dict(os.environ, {}, clear=True):
8686
config = AgentConfig.from_env()
87-
assert config.server_url == "http://localhost:6767/api"
87+
assert config.server_url == "http://localhost:8080/api"
8888

8989
def test_reads_agentspan_auth_key(self):
9090
env = {"AGENTSPAN_AUTH_KEY": "mykey", "AGENTSPAN_AUTH_SECRET": "mysecret"}
@@ -172,7 +172,7 @@ def test_from_env_auto_appends(self):
172172
def test_default_url_has_api(self):
173173
with mock.patch.dict(os.environ, {}, clear=True):
174174
config = AgentConfig.from_env()
175-
assert config.server_url == "http://localhost:6767/api"
175+
assert config.server_url == "http://localhost:8080/api"
176176

177177

178178
class TestLogLevelConfig:

tests/ai/unit/test_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def test_defaults(self):
335335
from conductor.ai.agents.runtime.config import AgentConfig
336336

337337
config = AgentConfig()
338-
assert config.server_url == "http://localhost:6767/api"
338+
assert config.server_url == "http://localhost:8080/api"
339339
assert config.llm_retry_count == 3
340340
assert config.worker_poll_interval_ms == 100
341341

0 commit comments

Comments
 (0)