Part
@Serializable
Represents a part of content, which can be one of several types such as text, inline data, function call, function response, or file data.
Constructors
Link copied to clipboard
constructor(text: String? = null, inlineData: InlineData? = null, functionCall: FunctionCall? = null, functionResponse: FunctionResponse? = null, fileData: FileData? = null)
Properties
Link copied to clipboard
A call to a function represented by this part, if applicable. Null if this part does not invoke a function.
Link copied to clipboard
The response from a function call, if this part represents such a response. Null if there is no function response.
Link copied to clipboard
Data embedded directly within this part, if present. Null if no inline data is included.