OpenAiResponsesBackend
class OpenAiResponsesBackend(baseUrl: String, model: String, apiKey: String = "", instructions: String = "", tools: List<AgentTool> = emptyList(), approver: ToolApprover = ToolApprover.AlwaysApprove, maxSteps: Int = 8, client: OkHttpClient = DefaultHttpClient, extraHeaders: Map<String, String> = emptyMap()) : ChatBackend(source)
The OpenAI Responses API (POST /responses, streaming) — OpenAI's current agent-oriented API, also served by Ollama and several gateways.
Stateless (store: false): every step resends the conversation plus the previous steps' output items (reasoning items with encrypted_content, function_calls) and function_call_outputs, so reasoning models keep their chain of thought across tool calls.