ExAgent.Providers.DeepSeek (ExAgent v0.2.0)

Copy Markdown View Source

DeepSeek LLM provider.

DeepSeek uses an OpenAI-compatible API format with Bearer token auth.

Example

provider = ExAgent.Providers.DeepSeek.new(api_key: "sk-...")
ExAgent.Provider.chat(provider, messages)

Summary

Functions

Creates a new DeepSeek provider with validated options and initialized Req client.

Types

t()

@type t() :: %ExAgent.Providers.DeepSeek{
  api_key: String.t(),
  base_url: String.t(),
  max_tokens: integer(),
  model: String.t(),
  req: Req.Request.t() | nil,
  system_prompt: String.t() | nil,
  temperature: float(),
  tools: [ExAgent.Tool.t()]
}

Functions

new(opts)

@spec new(keyword()) :: t()

Creates a new DeepSeek provider with validated options and initialized Req client.

Options

  • :api_key (required) - DeepSeek API key
  • :model - Model name (default: "deepseek-chat")
  • :base_url - API base URL (default: "https://api.deepseek.com/v1")
  • :system_prompt - System prompt to prepend to messages
  • :tools - List of ExAgent.Tool structs