ExAgent.Services.DeepSeekService (ExAgent v0.2.0)

Copy Markdown View Source

HTTP service for DeepSeek API.

DeepSeek uses an OpenAI-compatible API format, so this service mirrors the OpenAI service with DeepSeek-specific defaults.

Summary

Functions

Sends a chat completion request to the DeepSeek API.

Streams a chat completion from the DeepSeek API as a lazy enumerable of text chunks.

Functions

chat(provider, messages, opts \\ [])

@spec chat(
  ExAgent.Providers.DeepSeek.t(),
  [ExAgent.Message.t()],
  keyword()
) ::
  {:ok, ExAgent.Message.t()}
  | {:tool_call, String.t(), map()}
  | {:error, term()}

Sends a chat completion request to the DeepSeek API.

stream(provider, messages, opts \\ [])

Streams a chat completion from the DeepSeek API as a lazy enumerable of text chunks.