Class ApiChatCompletionsRequestMessage.User
java.lang.Object
de.xima.fc.prompt.ms.impl.service.generic_oai.client.json.ApiChatCompletionsRequestMessage
de.xima.fc.prompt.ms.impl.service.generic_oai.client.json.ApiChatCompletionsRequestMessage.User
- Enclosing class:
ApiChatCompletionsRequestMessage
public static final class ApiChatCompletionsRequestMessage.User
extends ApiChatCompletionsRequestMessage
Messages sent by an end user, containing prompts or additional context information.
- Since:
- 8.5.0
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the contents of the user message.Sets an optional name for the participant.
-
Constructor Details
-
User
public User()
-
-
Method Details
-
content
public ApiChatCompletionsRequestMessage.User content(List<ApiChatCompletionsRequestMessageContent> content) Sets the contents of the user message.- Parameters:
content- The content of the message.- Returns:
- This instance.
-
name
Sets an optional name for the participant. Provides the model information to differentiate between participants of the same role.- Parameters:
name- The name of the developer.- Returns:
- This instance.
-