ThinkingResponse

data class ThinkingResponse<T>(val result: T?, val thinkingBlocks: List<<Error class: unknown class>>)

Response from LLM operations that includes both the converted result and thinking blocks.

This class provides access to both the final structured result and the reasoning process that led to that result, enabling analysis of LLM decision-making.

Parameters

T

The type of the converted result object

Constructors

Link copied to clipboard
constructor(result: T?, thinkingBlocks: List<<Error class: unknown class>>)

Properties

Link copied to clipboard
val result: T?

The final converted result object.

Link copied to clipboard
val thinkingBlocks: List<<Error class: unknown class>>

The thinking blocks extracted from the LLM response.

Functions

Link copied to clipboard
fun getThinkingByTag(tagValue: String): List<<Error class: unknown class>>

Get thinking blocks by tag value (e.g., "think", "analysis").

Link copied to clipboard
fun getThinkingByType(tagType: <Error class: unknown class>): List<<Error class: unknown class>>

Get thinking blocks of a specific type.

Link copied to clipboard

Get all thinking content as a single concatenated string. Useful for logging or display purposes.

Link copied to clipboard

Check if the conversion was successful.

Link copied to clipboard

Check if thinking blocks were found in the response.