Class Message.Attachment.Tool
-
- All Implemented Interfaces:
public final class Message.Attachment.Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
Message.Attachment.Tool.Visitor
An interface that defines how to map each variant of Tool to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<CodeInterpreterTool>
codeInterpreter()
final Optional<JsonValue>
assistantToolsFileSearchTypeOnly()
final Boolean
isCodeInterpreter()
final Boolean
isAssistantToolsFileSearchTypeOnly()
final CodeInterpreterTool
asCodeInterpreter()
final JsonValue
asAssistantToolsFileSearchTypeOnly()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(Message.Attachment.Tool.Visitor<T> visitor)
final Message.Attachment.Tool
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Message.Attachment.Tool
ofCodeInterpreter(CodeInterpreterTool codeInterpreter)
final static Message.Attachment.Tool
ofAssistantToolsFileSearchTypeOnly()
-
-
Method Detail
-
codeInterpreter
final Optional<CodeInterpreterTool> codeInterpreter()
-
assistantToolsFileSearchTypeOnly
final Optional<JsonValue> assistantToolsFileSearchTypeOnly()
-
isCodeInterpreter
final Boolean isCodeInterpreter()
-
isAssistantToolsFileSearchTypeOnly
final Boolean isAssistantToolsFileSearchTypeOnly()
-
asCodeInterpreter
final CodeInterpreterTool asCodeInterpreter()
-
asAssistantToolsFileSearchTypeOnly
final JsonValue asAssistantToolsFileSearchTypeOnly()
-
accept
final <T extends Any> T accept(Message.Attachment.Tool.Visitor<T> visitor)
-
validate
final Message.Attachment.Tool validate()
-
ofCodeInterpreter
final static Message.Attachment.Tool ofCodeInterpreter(CodeInterpreterTool codeInterpreter)
-
ofAssistantToolsFileSearchTypeOnly
final static Message.Attachment.Tool ofAssistantToolsFileSearchTypeOnly()
-
-
-
-