Created
March 7, 2025 09:16
-
-
Save kartikpuri95/ebf0b5503f23480d89ed568e2d4eba63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from phi.agent import Agent | |
| from phi.model.openai import OpenAIChat | |
| from phi.tools.duckduckgo import DuckDuckGo | |
| web_agent = Agent( | |
| name="Web Agent", | |
| model=OpenAIChat(id="gpt-4o"), | |
| tools=[DuckDuckGo()], | |
| instructions=["Always include sources"], | |
| show_tool_calls=True, | |
| markdown=True, | |
| ) | |
| web_agent.print_response("Whats happening in France?", stream=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment