# # Copyright (c) 2024–2025, Daily # # SPDX-License-Identifier: BSD 2-Clause License # import asyncio import os from base_function_calling import WeatherBot from dotenv import load_dotenv from pipecat.services.anthropic import AnthropicLLMService load_dotenv(override=True) class AnthropicWeatherBot(WeatherBot): """Main class defining the LLM and passing it to the base handler.""" def __init__(self): llm = AnthropicLLMService( api_key=os.getenv("ANTHROPIC_API_KEY"), model="claude-3-5-sonnet-20240620" ) super().__init__(llm) if __name__ == "__main__": asyncio.run(AnthropicWeatherBot().run())