Package com.openai.models
Class ChatCompletionToolMessageParam.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionToolMessageParam.Builder
A builder for ChatCompletionToolMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionToolMessageParam.Builder content(ChatCompletionToolMessageParam.Content content)
The contents of the tool message.
-
content
final ChatCompletionToolMessageParam.Builder content(JsonField<ChatCompletionToolMessageParam.Content> content)
The contents of the tool message.
-
content
final ChatCompletionToolMessageParam.Builder content(String text)
The contents of the tool message.
-
contentOfArrayOfContentParts
final ChatCompletionToolMessageParam.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. For tool messages, only type
text
is supported.
-
role
final ChatCompletionToolMessageParam.Builder role(JsonValue role)
The role of the messages author, in this case
tool
.
-
toolCallId
final ChatCompletionToolMessageParam.Builder toolCallId(String toolCallId)
Tool call that this message is responding to.
-
toolCallId
final ChatCompletionToolMessageParam.Builder toolCallId(JsonField<String> toolCallId)
Tool call that this message is responding to.
-
additionalProperties
final ChatCompletionToolMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionToolMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionToolMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionToolMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionToolMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionToolMessageParam build()
-
-
-
-