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
+26
View File
@@ -0,0 +1,26 @@
from routes.chat_helpers import youtube_prefetch_sources
def test_successful_youtube_preprocessing_has_visible_provenance():
sources = youtube_prefetch_sources(
"Summarize https://youtu.be/jNQXAC9IVRw",
[
"instructions",
"[YOUTUBE VIDEO TRANSCRIPT]\nTitle: Me at the zoo\n[END TRANSCRIPT]",
"[YOUTUBE VIDEO COMMENTS — Top 2 by popularity]\n[END COMMENTS]",
],
)
assert sources == [{
"url": "https://youtu.be/jNQXAC9IVRw",
"title": "Me at the zoo",
"acquisition": "automatic_youtube_context",
"evidence": "transcript+comments",
}]
def test_failed_youtube_preprocessing_does_not_claim_evidence():
assert youtube_prefetch_sources(
"Summarize https://youtu.be/jNQXAC9IVRw",
["Transcript unavailable; use comments if available."],
) == []