Example


from phi.agent import Agent
from phi.model.deepseek import DeepSeekChat
from phi.tools.yfinance import YFinanceTools

agent = Agent(
    model=DeepSeekChat(),
    tools=[YFinanceTools(stock_price=True)],
    show_tool_calls=True,
    markdown=True,
)

agent.print_response("Give me in-depth analysis of NVDA and TSLA")

DeepSeek Params

ParameterTypeDefaultDescription
idstr"deepseek-chat"The specific model ID used for generating responses.
namestr"DeepSeekChat"The name identifier for the DeepSeek model.
providerstr"DeepSeek"The provider of the model.
api_keyOptional[str]-The API key used for authenticating requests to the DeepSeek service. Retrieved from the environment variable DEEPSEEK_API_KEY.
base_urlstr"https://api.deepseek.com"The base URL for making API requests to the DeepSeek service.

Model Params

DeepSeek is a subclass of the OpenAILike class and has access to the same params.