mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-11 09:22:21 +02:00
Consolidate Odysseus agent harness and tool contracts
This commit is contained in:
@@ -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",
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user