From ee4a9ba8a4a54b366a4472d1d6c9abd1ad0919f7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 04:34:20 +0000 Subject: [PATCH] Fix agent_callback_uri tome and docs to use set_callback_uri The `agent_callback_uri` tome was calling `agent.set_active_callback_uri`, which is not a valid method on the `AgentLibrary`. This caused the `tests::test_all_tomes` test to fail. This commit updates the tome to use the correct method name `set_callback_uri`, and also corrects the user documentation which referenced the incorrect name. --- docs/_docs/user-guide/eldritchv2-core.md | 2 +- docs/_docs/user-guide/eldritchv2.md | 4 ++-- tavern/tomes/agent_callback_uri/main.eldritch | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_docs/user-guide/eldritchv2-core.md b/docs/_docs/user-guide/eldritchv2-core.md index 7e224173d..1d841a039 100644 --- a/docs/_docs/user-guide/eldritchv2-core.md +++ b/docs/_docs/user-guide/eldritchv2-core.md @@ -843,7 +843,7 @@ It allows you to: **Errors** - Returns an error string if the interval cannot be set. -* **`agent.set_active_callback_uri`** +* **`agent.set_callback_uri`** Sets the active callback URI for the agent. **Parameters** diff --git a/docs/_docs/user-guide/eldritchv2.md b/docs/_docs/user-guide/eldritchv2.md index 91477f32d..d6745528f 100644 --- a/docs/_docs/user-guide/eldritchv2.md +++ b/docs/_docs/user-guide/eldritchv2.md @@ -85,8 +85,8 @@ Returns a list of available transport names. **Errors** - Returns an error string if the list cannot be retrieved. -### agent.set_active_callback_uri -`agent.set_active_callback_uri(uri: str) -> None` +### agent.set_callback_uri +`agent.set_callback_uri(uri: str) -> None` Sets the active callback URI for the agent. **Parameters** diff --git a/tavern/tomes/agent_callback_uri/main.eldritch b/tavern/tomes/agent_callback_uri/main.eldritch index 85bc119df..626d0ba78 100644 --- a/tavern/tomes/agent_callback_uri/main.eldritch +++ b/tavern/tomes/agent_callback_uri/main.eldritch @@ -1,5 +1,5 @@ def set_callback_uri(uri): - agent.set_active_callback_uri(uri) + agent.set_callback_uri(uri) print(f"Set agent callback uri to {uri}")