Install

pip install -U phidata

Simple and Easy

Solace Agents are simple and elegant, resulting in minimal, beautiful code.

from sol.agent import Agent
from sol.model.openai import OpenAIChat
from sol.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)

Last updated