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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the contents of the user message.toolCallId(String toolCallId) Sets the tool call that this message is responding to.
-
Constructor Details
-
Tool
public Tool()
-
-
Method Details
-
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
Sets the tool call that this message is responding to.- Parameters:
toolCallId- The ID of the tool call.- Returns:
- This instance.
-