Package com.openai.models.beta.threads
Class ThreadCreateParams.Message.Attachment.Tool
-
- All Implemented Interfaces:
public final class ThreadCreateParams.Message.Attachment.Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ThreadCreateParams.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>
fileSearch()
final Boolean
isCodeInterpreter()
final Boolean
isFileSearch()
final CodeInterpreterTool
asCodeInterpreter()
final JsonValue
asFileSearch()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ThreadCreateParams.Message.Attachment.Tool.Visitor<T> visitor)
final ThreadCreateParams.Message.Attachment.Tool
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ThreadCreateParams.Message.Attachment.Tool
ofCodeInterpreter(CodeInterpreterTool codeInterpreter)
final static ThreadCreateParams.Message.Attachment.Tool
ofFileSearch()
-
-
Method Detail
-
codeInterpreter
final Optional<CodeInterpreterTool> codeInterpreter()
-
fileSearch
final Optional<JsonValue> fileSearch()
-
isCodeInterpreter
final Boolean isCodeInterpreter()
-
isFileSearch
final Boolean isFileSearch()
-
asCodeInterpreter
final CodeInterpreterTool asCodeInterpreter()
-
asFileSearch
final JsonValue asFileSearch()
-
accept
final <T extends Any> T accept(ThreadCreateParams.Message.Attachment.Tool.Visitor<T> visitor)
-
validate
final ThreadCreateParams.Message.Attachment.Tool validate()
-
ofCodeInterpreter
final static ThreadCreateParams.Message.Attachment.Tool ofCodeInterpreter(CodeInterpreterTool codeInterpreter)
-
ofFileSearch
final static ThreadCreateParams.Message.Attachment.Tool ofFileSearch()
-
-
-
-