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 RequestMessagePartsBuilder.
Example:``` user { test("Image 1:") image("photo1.jpg") test("Image 2:") image("photo3.jpg") }
Parameters
Lambda to configure attachments using ContentMessagePartsBuilder