complete

abstract suspend fun complete(model: String, messages: List<LlmMessage>, tools: List<LlmTool>? = null, config: CompletionConfig = CompletionConfig()): LlmGatewayResponse

Single-shot completion.

Return

Aggregated gateway response. The broker — not the gateway — decides what to do with tool calls.

Parameters

model

Provider-side model identifier (e.g. qwen2.5:7b for Ollama).

messages

Conversation history.

tools

Tools to expose to the LLM. Empty / null means no tools.

config

Shared completion knobs.