Class ApiChatCompletionsRequestMessage.Tool
- 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.Tool
-
- Enclosing class:
- ApiChatCompletionsRequestMessage
public static final class ApiChatCompletionsRequestMessage.Tool extends ApiChatCompletionsRequestMessage
A tool message with the results of a tool call.- Since:
- 8.5.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.prompt.ms.impl.service.generic_oai.client.json.ApiChatCompletionsRequestMessage
ApiChatCompletionsRequestMessage.Developer, ApiChatCompletionsRequestMessage.Function, ApiChatCompletionsRequestMessage.System, ApiChatCompletionsRequestMessage.Tool, ApiChatCompletionsRequestMessage.User
-
-
Constructor Summary
Constructors Constructor Description Tool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiChatCompletionsRequestMessage.Toolcontent(List<ApiChatCompletionsRequestMessageContent> content)Sets the contents of the user message.ApiChatCompletionsRequestMessage.TooltoolCallId(String toolCallId)Sets the tool call that this message is responding to.
-
-
-
Method Detail
-
content
public ApiChatCompletionsRequestMessage.Tool content(List<ApiChatCompletionsRequestMessageContent> content)
Sets the contents of the user message.- Parameters:
content- The content of the message.- Returns:
- This instance.
-
toolCallId
public ApiChatCompletionsRequestMessage.Tool toolCallId(String toolCallId)
Sets the tool call that this message is responding to.- Parameters:
toolCallId- The ID of the tool call.- Returns:
- This instance.
-
-