New fast_tools.py module: - FastTool base class (matches + run interface) - RealTimeSearchTool: SearXNG search for weather/news/prices/scores - FastToolRunner: classifier that checks all tools, runs matching ones concurrently and returns combined context Router accepts FastToolRunner; any_matches() forces medium tier before LLM classification (replaces _MEDIUM_FORCE_PATTERNS regex). agent.py: _REALTIME_RE and _searxng_search_async removed; pre-flight gather now includes fast_tool_runner.run_matching() alongside URL fetch and memory retrieval. To add a new fast tool: subclass FastTool, add to the list in agent.py. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
347 B
Docker
11 lines
347 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip install --no-cache-dir deepagents langchain-openai langgraph \
|
|
fastapi uvicorn langchain-mcp-adapters langchain-community httpx
|
|
|
|
COPY agent.py channels.py vram_manager.py router.py agent_factory.py fast_tools.py hello_world.py .
|
|
|
|
CMD ["uvicorn", "agent:app", "--host", "0.0.0.0", "--port", "8000"]
|