Package com.openai.models
Class ChatCompletionToolMessageParam.Content
-
- All Implemented Interfaces:
public final class ChatCompletionToolMessageParam.Content
The contents of the tool message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatCompletionToolMessageParam.Content.Visitor
public final class
ChatCompletionToolMessageParam.Content.Deserializer
public final class
ChatCompletionToolMessageParam.Content.Serializer
-
Method Summary
-
-
Method Detail
-
textContent
final Optional<String> textContent()
The contents of the tool message.
-
arrayOfContentParts
final Optional<List<ChatCompletionContentPartText>> arrayOfContentParts()
An array of content parts with a defined type. For tool messages, only type
text
is supported.
-
isTextContent
final Boolean isTextContent()
-
isArrayOfContentParts
final Boolean isArrayOfContentParts()
-
asTextContent
final String asTextContent()
The contents of the tool message.
-
asArrayOfContentParts
final List<ChatCompletionContentPartText> asArrayOfContentParts()
An array of content parts with a defined type. For tool messages, only type
text
is supported.
-
accept
final <T extends Any> T accept(ChatCompletionToolMessageParam.Content.Visitor<T> visitor)
-
validate
final ChatCompletionToolMessageParam.Content validate()
-
ofTextContent
final static ChatCompletionToolMessageParam.Content ofTextContent(String textContent)
The contents of the tool message.
-
ofArrayOfContentParts
final static ChatCompletionToolMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
An array of content parts with a defined type. For tool messages, only type
text
is supported.
-
-
-
-