Ask a question to get started
Enter to send•Shift+Enter new line
public class PromptCanvasParams extends Params
unexpectedly missing or null (e.g.
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.
Adds a single [Message] to [messages]..
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 chunk from an AI (yielded when streaming)..
Human Message chunk..
Chat Message chunk..
System Message chunk..
Function Message chunk..
Tool Message chunk..
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].
Alias for calling [content] with Content.ofUnnamedSchemaWithArrayParent0s(unnamedSchemaWithArrayParent0s)..
Content.ofUnnamedSchemaWithArrayParent0s(unnamedSchemaWithArrayParent0s)
Adds a single [InvalidToolCall] to [invalidToolCalls]..
Adds a single [ToolCall] to [toolCalls]..
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.
Alias for calling [content] with Content.ofUnnamedSchemaWithArrayParent1s(unnamedSchemaWithArrayParent1s)..
Content.ofUnnamedSchemaWithArrayParent1s(unnamedSchemaWithArrayParent1s)
Returns the raw JSON value of [role].
Alias for calling [content] with Content.ofUnnamedSchemaWithArrayParent2s(unnamedSchemaWithArrayParent2s)..
Content.ofUnnamedSchemaWithArrayParent2s(unnamedSchemaWithArrayParent2s)
Alias for calling [content] with Content.ofUnnamedSchemaWithArrayParent3s(unnamedSchemaWithArrayParent3s)..
Content.ofUnnamedSchemaWithArrayParent3s(unnamedSchemaWithArrayParent3s)
Alias for calling [content] with Content.ofUnnamedSchemaWithArrayParent4s(unnamedSchemaWithArrayParent4s)..
Content.ofUnnamedSchemaWithArrayParent4s(unnamedSchemaWithArrayParent4s)
Prompt Canvas.
Prompt Canvas