OllamaChatResponseSpecification

class OllamaChatResponseSpecification(var assistantContent: String = "This is a mock response from Ollama.", var thinking: String? = null, var toolCalls: List<Map<String, Any>>? = null, var finishReason: String? = "stop", delay: Duration = 0.seconds) : AbstractResponseSpecification<ChatRequest, ChatResponse> (source)

Specification for configuring chat completion responses.

This class is used to specify the content and behavior of responses to chat completion requests. It allows specifying the assistant message content, thinking content, and tool calls.

Constructors

Link copied to clipboard
constructor(assistantContent: String = "This is a mock response from Ollama.", thinking: String? = null, toolCalls: List<Map<String, Any>>? = null, finishReason: String? = "stop", delay: Duration = 0.seconds)

Properties

Link copied to clipboard

The content of the assistant's response

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The thinking process of the model (for thinking models)

Link copied to clipboard

The tool calls to include in the response

Functions

Link copied to clipboard

Sets the assistant's response content.

Link copied to clipboard
open override fun delayMillis(value: Long)
Link copied to clipboard

Sets the thinking process content for the assistant's response.

Link copied to clipboard

Sets the tool calls to be included in the chat response.