MessageCompletion

Constructors

Link copied to clipboard
constructor(model: ModelName, prompt: UserPrompt, max_tokens: MaxTokens, metadata: Metadata? = null, stop_sequences: List<String> = emptyList(), system: List<Content.Text>? = null, temperature: Temperature? = null, tool_choice: ToolChoice? = null, tools: List<Tool> = emptyList(), top_k: Int? = null, top_p: Double? = null, thinking: Thinking? = null, cache_control: CacheControl? = null, output_config: OutputConfig? = null, container: ContainerSpec? = null, inference_geo: InferenceGeo? = null, service_tier: ServiceTier? = null)
constructor(model: ModelName, messages: List<Message>, max_tokens: MaxTokens, metadata: Metadata? = null, stop_sequences: List<String> = emptyList(), system: List<Content.Text>? = null, temperature: Temperature? = null, tool_choice: ToolChoice? = null, tools: List<Tool> = emptyList(), top_k: Int? = null, top_p: Double? = null, thinking: Thinking? = null, cache_control: CacheControl? = null, output_config: OutputConfig? = null, container: ContainerSpec? = null, inference_geo: InferenceGeo? = null, service_tier: ServiceTier? = null)
constructor(model: ModelName, prompt: UserPrompt, max_tokens: MaxTokens)
constructor(model: ModelName, messages: List<Message>, max_tokens: MaxTokens)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val top_k: Int?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRequest(): Request
Link copied to clipboard
open override fun toResult(response: Response): Result<MessageCompletionResponse, RemoteFailure>