Skip to content

Commit

Permalink
agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Erdos committed Feb 6, 2025
1 parent 1d847da commit 47d5132
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions agents/web-search/web_search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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("Tell me about OpenAI Sora?", stream=True)

0 comments on commit 47d5132

Please sign in to comment.