Problem: - Model was hallucinating time answers (e.g., wrong Amsterdam time) - get_current_time() only returned UTC - No way to query time in specific timezones Solution: - Enhanced get_current_time(timezone) to support any IANA timezone - Added pytz>=2025.2 dependency for timezone handling - Returns formatted time with timezone info: "2025-11-30 16:25:55 CET" - Supports timezones: Europe/Amsterdam, America/New_York, Asia/Tokyo, etc. Testing: - Added test_timezone.py: 6 comprehensive timezone tests - UTC, Amsterdam, New York, Tokyo timezone queries - Invalid timezone error handling - Timezone offset correctness validation - Added test_agent_timezone.py: 3 integration tests - Agent tool usage for timezone queries - Agent behavior with/without tools - Multi-timezone query handling All new tests passing. Tool verified working across multiple timezones. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
512 B
Plaintext
24 lines
512 B
Plaintext
# PydanticAI and dependencies (slim to reduce bloat)
|
|
pydantic-ai-slim # Minimal library - Ollama uses OpenAI-compatible API
|
|
pydantic>=2.10.3 # Let pydantic-ai determine the compatible version
|
|
pydantic-settings==2.6.1
|
|
|
|
# LiteLLM (for simple agent fallback)
|
|
litellm==1.80.5
|
|
|
|
# Core dependencies
|
|
aiohttp==3.10.1
|
|
aiohttp-cors==0.7.0
|
|
python-dotenv>=1.1.0
|
|
httpx==0.28.1
|
|
|
|
# Memory system
|
|
qdrant-client>=1.12.0 # Vector database client
|
|
|
|
# Timezone support
|
|
pytz>=2025.2
|
|
|
|
# Testing
|
|
pytest==8.3.4
|
|
pytest-asyncio==0.24.0
|