Prompt Canvas.
public class PromptCanvasParams extends ParamsPrompt Canvas
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
Returns the raw JSON value of [messages].
Returns the raw JSON value of [secrets].
Returns the raw JSON value of [templateFormat].
Returns the raw JSON value of [artifact].
Returns the raw JSON value of [artifactLength].
Returns the raw JSON value of [customAction].
Returns the raw JSON value of [highlighted].
Returns the raw JSON value of [readingLevel].
Additional headers to send with the request..
Additional query param to send with the request..
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
Sets the entire request body.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
Returns an immutable instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
Returns the raw JSON value of [messages].
Returns the raw JSON value of [secrets].
Returns the raw JSON value of [templateFormat].
Returns the raw JSON value of [artifact].
Returns the raw JSON value of [artifactLength].
Returns the raw JSON value of [customAction].
Returns the raw JSON value of [highlighted].
Returns the raw JSON value of [readingLevel].
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
Adds a single [Message] to [messages]..
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
Returns an immutable instance of [PromptCanvasParams].
Message from an AI.
Message from the user.
Message that can be assigned an arbitrary speaker (i.e.
Message for priming AI behavior.
Message for passing the result of executing a tool back to a model.
Message for passing the result of executing a tool back to a model.
Message chunk from an AI (yielded when streaming)..
Human Message chunk..
Chat Message chunk..
System Message chunk..
Function Message chunk..
Tool Message chunk..
Message from an AI.
Message from the user.
Message that can be assigned an arbitrary speaker (i.e.
Message for priming AI behavior.
Message for passing the result of executing a tool back to a model.
Message for passing the result of executing a tool back to a model.
Message chunk from an AI (yielded when streaming)..
Human Message chunk..
Chat Message chunk..
System Message chunk..
Function Message chunk..
Tool Message chunk..
Message from an AI.
Message from the user.
Message that can be assigned an arbitrary speaker (i.e.
Message for priming AI behavior.
Message for passing the result of executing a tool back to a model.
Message for passing the result of executing a tool back to a model.
Message chunk from an AI (yielded when streaming)..
Human Message chunk..
Chat Message chunk..
System Message chunk..
Function Message chunk..
Tool Message chunk..
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Usage metadata for a message, such as token counts.
Returns the raw JSON value of [content].
Returns the raw JSON value of [id].
Returns the raw JSON value of [invalidToolCalls].
Returns the raw JSON value of [name].
Returns the raw JSON value of [toolCalls].
Returns the raw JSON value of [type].
Returns the raw JSON value of [usageMetadata].
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent0s(unnamedSchemaWithArrayParent0s)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Adds a single [InvalidToolCall] to [invalidToolCalls]..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Adds a single [ToolCall] to [toolCalls]..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Usage metadata for a message, such as token counts.
Usage metadata for a message, such as token counts.
Usage metadata for a message, such as token counts.
Returns an immutable instance of [PromptCanvasParams].
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns the raw JSON value of [content].
Returns the raw JSON value of [id].
Returns the raw JSON value of [name].
Returns the raw JSON value of [type].
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent1s(unnamedSchemaWithArrayParent1s)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns an immutable instance of [PromptCanvasParams].
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns the raw JSON value of [content].
Returns the raw JSON value of [role].
Returns the raw JSON value of [id].
Returns the raw JSON value of [name].
Returns the raw JSON value of [type].
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent2s(unnamedSchemaWithArrayParent2s)..
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns an immutable instance of [PromptCanvasParams].
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns the raw JSON value of [content].
Returns the raw JSON value of [id].
Returns the raw JSON value of [name].
Returns the raw JSON value of [type].
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent3s(unnamedSchemaWithArrayParent3s)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns an immutable instance of [PromptCanvasParams].
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
unexpectedly missing or null (e.g.
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns the raw JSON value of [content].
Returns the raw JSON value of [name].
Returns the raw JSON value of [id].
Returns the raw JSON value of [type].
Returns a mutable builder for constructing an instance of [PromptCanvasParams].
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
Alias for calling [content] with
Content.ofUnnamedSchemaWithArrayParent4s(unnamedSchemaWithArrayParent4s)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
if the server responded with an unexpected value)..
Returns an immutable instance of [PromptCanvasParams].
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.