OpenAI-compatible chat completion response struct.
Mirrors the shape of POST /v1/chat/completions responses.
Summary
Types
A tool call, present on message only when the reply called a tool (see the
:tools option of LlamaCppEx.chat_completion/3). arguments is JSON text,
as in the OpenAI API.
Types
@type tool_call() :: %{ id: String.t(), type: String.t(), function: %{name: String.t(), arguments: String.t()} }
A tool call, present on message only when the reply called a tool (see the
:tools option of LlamaCppEx.chat_completion/3). arguments is JSON text,
as in the OpenAI API.