from observee_agents import chat_with_tools# Simple conversation with tool accessresult = chat_with_tools( message="Search for recent news about AI developments", provider="anthropic", observee_api_key="obs_your_key_here")print("🤖 AI Response:", result["content"])print("🔧 Tools Used:", len(result["tool_calls"]))
# First messageresult1 = chat_with_tools( message="Search for emails about the product launch", session_id="assistant_001")# Follow-up (remembers context)result2 = chat_with_tools( message="What date was mentioned in those emails?", session_id="assistant_001" # Same session = memory)
🎉 Congratulations! You just:
Connected to 1000+ tools - Gmail, YouTube, Linear, Slack, and more
Used multiple LLM providers - Anthropic, OpenAI, and Google
Created conversations with memory - Context preserved across messages