fix: complete web search integration with query enrichment
Build and Push / build (release) Successful in 52s
Build and Push / build (release) Successful in 52s
Fixes several issues with the web search migration to Librarian: - Update Steward routing guidelines for web search/weather → Librarian - Register search_web, read_url, read_urls_batch tools with Librarian agent - Update Librarian system prompt with web search documentation - Fix query enrichment not being passed to delegations (location context) - Add URL reading keywords to RESEARCH action type detection Weather queries now automatically include user's stored location from the Biographer, enabling location-aware search results. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -515,15 +515,18 @@ async def create_response_with_steward(request: ResponseRequest) -> Response:
|
||||
from src.agents.tatlock import TatlockAgent
|
||||
tatlock = TatlockAgent()
|
||||
|
||||
# Use enriched query (with location/timezone context) if available
|
||||
effective_query = enriched.recommendation.enriched_query or user_message
|
||||
|
||||
if delegation_only:
|
||||
# Direct delegation path - collect results then synthesize
|
||||
orchestration_results = await _direct_delegation_with_results(
|
||||
user_message, enriched.recommendation, tracker, conversation_id
|
||||
effective_query, enriched.recommendation, tracker, conversation_id
|
||||
)
|
||||
else:
|
||||
# Phase 1: Orchestrate tool calls
|
||||
orchestration_results = await tatlock.orchestrate_tool_calls(
|
||||
user_message=user_message,
|
||||
user_message=effective_query,
|
||||
steward_note=enriched.steward_note,
|
||||
scoped_tools=enriched.scoped_tools,
|
||||
message_history=conversation_history,
|
||||
|
||||
Reference in New Issue
Block a user