OutputTextPart

@Serializable
class OutputTextPart(val text: String) : TextContentPart

Text produced by the model, as output_text.

Also accepted on input: replaying a previous assistant message keeps the parts it came back with.

Constructors

Link copied to clipboard
constructor(text: String)

Properties

Link copied to clipboard
open override val text: String

The text itself.

Link copied to clipboard
open override val type: String

Raw type discriminator of the part.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String