create Request
Creates a ResponseRequest carrying a conversation.
Return
A fully configured ResponseRequest
Parameters
input
Conversation so far, in the order the model should see it
Creates a ResponseRequest carrying a single user message.
Return
A fully configured ResponseRequest
Parameters
input
Text of the user's message
Creates a ResponseRequest with no input, driven by instructions alone.
Return
A fully configured ResponseRequest
Throws
if instructions is null, since the API requires at least one of the two
Creates a ResponseRequest from an already-shaped input.
Return
A fully configured ResponseRequest
Parameters
input
The conversation, or null to rely on instructions alone