OptionalapplicationThe ID of the deployed application to use for this chat completion. This is required if a canvasId is not provided.
OptionalasyncAsync mode is not available for streaming executions.
OptionalcanvasThe ID of the canvas to use for this chat completion. This is required if an applicationId is not provided.
OptionallabelOptional label for this execution when using applicationId. This label can be used to identify or categorize the execution. Note: This field is only applicable when applicationId is provided.
OptionalmessagesAn array of previous messages in the conversation. Each message should have a 'role' (e.g., 'user', 'assistant') and 'content'.
OptionaloverrideOverride default settings specified in the canvas. This allows for fine-tuning the completion behavior for this specific request.
Optionalfunctions?: {An array of functions that the model can call. This allows for more structured and interactive completions.
Optionalmodel?: stringThe specific model to use for this completion. If not specified, the default model set in the canvas will be used.
Optionaltemperature?: numberControls randomness in the output. Values between 0 and 1. Lower values make the output more focused and deterministic.
Specifies whether to use a chat or completion model.
OptionalskipWhether to skip Zod schema validation on execution results. When true, results are typecast to the expected output type without validation.
Enable streaming mode.
OptionaltagsOptional array of tags to associate with this execution. Tags can be used for filtering, categorization, and analytics.
OptionalversionThe version ID of the canvas to use for this chat completion. If not provided, the latest version of the specified canvas will be used.
OptionalwebhookWebhook URL is not available for streaming executions.
Configuration for streaming canvas execution. Results are returned incrementally as they're generated.