Message chunk from an AI (yielded when streaming)..
public class AiMessageChunkMessage chunk from an AI (yielded when streaming).
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Usage metadata for a message, such as token counts.
Returns the raw JSON value of [content].
Returns the raw JSON value of [id].
Returns the raw JSON value of [chunkPosition].
Returns the raw JSON value of [invalidToolCalls].
Returns the raw JSON value of [name].
Returns the raw JSON value of [toolCallChunks].
Returns the raw JSON value of [toolCalls].
Returns the raw JSON value of [type].
Returns the raw JSON value of [usageMetadata].
Returns a mutable builder for constructing an instance of [AiMessageChunk].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent6s(unnamedSchemaWithArrayParent6s)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Adds a single [InvalidToolCall] to [invalidToolCalls]..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Adds a single [ToolCallChunk] to [toolCallChunks]..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Adds a single [ToolCall] to [toolCalls]..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Usage metadata for a message, such as token counts.
Usage metadata for a message, such as token counts.
Usage metadata for a message, such as token counts.
Returns an immutable instance of [AiMessageChunk].