Function Call Item
@Serializable
A function the model asked to call.
Answer it with a FunctionCallOutputItem carrying the same callId; every call in the history must have its matching output, or the API answers 400.
Constructors
Link copied to clipboard
constructor(callId: String, name: String, arguments: String, id: String? = null, status: ResponseStatus? = null)
Properties
Link copied to clipboard
Arguments the model generated, as a raw JSON string. Not guaranteed to be valid JSON, nor to match the declared schema; argumentsAsJsonOrNull parses it defensively.
Link copied to clipboard
Generation state of the item; null on an item the caller built.
Functions
Link copied to clipboard
Parses FunctionCallItem.arguments into a JsonObject, or returns null when the model produced malformed JSON or a JSON value that is not an object.