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
Optional FunctionCall representing a call to a function within this part. It is nullable to accommodate parts that are not function calls.
Link copied to clipboard
Optional FunctionResponse representing the response from a function call within this part. It is nullable to accommodate parts that do not contain function responses.
Link copied to clipboard
Optional InlineData associated with this part, providing additional data inline. It is nullable to accommodate parts without inline data.