user
Adds a user message to the prompt with optional attachments.
User messages represent input from the user to the language model. This method supports adding parts of the message such as text content or attachments.
Parameters
Parts of the user message
Adds a user message to the prompt.
User messages represent input from the user to the language model. This method supports adding text content.
Parameters
Content of the user message
Adds a user message to the prompt with attachments.
User messages represent input from the user to the language model. This method allows adding parts of the message such as text content or attachments using a ContentPartsBuilder.
Example:``` user { test("Image 1:") image("photo1.jpg") test("Image 2:") image("photo3.jpg") }
Parameters
Lambda to configure attachments using ContentPartsBuilder
Deprecated
Use user(block: ContentPartsBuilder.() -> Unit instead.
Adds a user message to the prompt with optional attachments.
User messages represent input from the user to the language model. This method supports adding text content.
Parameters
Content of the user message
Lambda to configure attachments using ContentPartsBuilder
Deprecated
Use user(block: ContentPartsBuilder.() -> Unit instead.
Adds a user message to the prompt with optional attachments.
User messages represent input from the user to the language model. This method supports adding text content.
Parameters
Content of the user message
Attachments to be added to the message