Thinking

Fluent interface for operations that extract thinking blocks from LLM responses. Provides access to:

  • Creating objects or text with thinking extraction

  • Processing multimodal content with thinkingg

Instances are obtained via PromptRunner.thinking.

Inheritors

Functions

Link copied to clipboard
open fun <T> createObject(content: MultimodalContent, outputClass: Class<T>): ThinkingResponse<T>

Create an object from multimodal content with thinking block extraction.

open fun <T> createObject(prompt: String, outputClass: Class<T>): ThinkingResponse<T>

Create an object of the given type with thinking block extraction.

abstract fun <T> createObject(messages: List<Message>, outputClass: Class<T>): ThinkingResponse<T>

Create an object from messages with thinking block extraction.

Link copied to clipboard
open fun <T> createObjectIfPossible(content: MultimodalContent, outputClass: Class<T>): ThinkingResponse<T?>

Try to create an object from multimodal content with thinking block extraction.

open fun <T> createObjectIfPossible(prompt: String, outputClass: Class<T>): ThinkingResponse<T?>

Try to create an object of the given type with thinking block extraction.

abstract fun <T> createObjectIfPossible(messages: List<Message>, outputClass: Class<T>): ThinkingResponse<T?>

Try to create an object from messages with thinking block extraction.

Link copied to clipboard
abstract fun evaluateCondition(condition: String, context: String, confidenceThreshold: <Error class: unknown class> = 0.8): ThinkingResponse<Boolean>

Evaluate a condition with thinking block extraction.

Link copied to clipboard

Generate text from multimodal content with thinking block extraction.

open infix fun generateText(prompt: String): ThinkingResponse<String>

Generate text with thinking block extraction.

Link copied to clipboard

Respond in a conversation with multimodal content and thinking block extraction.

Respond in a conversation with thinking block extraction.