Package com.braintrustdata.api.models
Class FunctionCreateParams.FunctionData
-
- All Implemented Interfaces:
public final class FunctionCreateParams.FunctionData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceFunctionCreateParams.FunctionData.VisitorAn interface that defines how to map each variant of FunctionData to a value of type T.
public final classFunctionCreateParams.FunctionData.Promptpublic final classFunctionCreateParams.FunctionData.Codepublic final classFunctionCreateParams.FunctionData.Global
-
Method Summary
-
-
Method Detail
-
prompt
final Optional<FunctionCreateParams.FunctionData.Prompt> prompt()
-
code
final Optional<FunctionCreateParams.FunctionData.Code> code()
-
global
final Optional<FunctionCreateParams.FunctionData.Global> global()
-
asPrompt
final FunctionCreateParams.FunctionData.Prompt asPrompt()
-
asCode
final FunctionCreateParams.FunctionData.Code asCode()
-
asGlobal
final FunctionCreateParams.FunctionData.Global asGlobal()
-
accept
final <T extends Any> T accept(FunctionCreateParams.FunctionData.Visitor<T> visitor)
-
validate
final FunctionCreateParams.FunctionData validate()
-
ofPrompt
final static FunctionCreateParams.FunctionData ofPrompt(FunctionCreateParams.FunctionData.Prompt prompt)
-
ofCode
final static FunctionCreateParams.FunctionData ofCode(FunctionCreateParams.FunctionData.Code code)
-
ofGlobal
final static FunctionCreateParams.FunctionData ofGlobal(FunctionCreateParams.FunctionData.Global global)
-
-
-
-