Consolidate Odysseus agent harness and tool contracts

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 10:07:40 +00:00
parent 84aa9a91de
commit 218d762427
229 changed files with 28899 additions and 1551 deletions
@@ -156,10 +156,10 @@ def test_successful_url_prefetch_keeps_existing_content_shape(monkeypatch):
monkeypatch.setattr(
chat_processor,
"fetch_webpage_content",
lambda url: {"success": True, "content": "page body"},
lambda url: {"success": True, "title": "Example report", "content": "page body"},
)
preface, _, _ = _processor().build_context_preface(
preface, _, web_sources = _processor().build_context_preface(
message="Read https://example.test/page",
session=SimpleNamespace(endpoint_url="", model="", headers={}),
use_web=False,
@@ -175,3 +175,8 @@ def test_successful_url_prefetch_keeps_existing_content_shape(monkeypatch):
)
assert page["metadata"]["trusted"] is False
assert "page body" in page["content"]
assert web_sources == [{
"url": "https://example.test/page",
"title": "Example report",
"acquisition": "automatic_url_fetch",
}]