Package com.openai.models
Interface ChatCompletionCreateParams.FunctionCall.Visitor
-
- All Implemented Interfaces:
public interface ChatCompletionCreateParams.FunctionCall.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitAuto(ChatCompletionCreateParams.FunctionCall.Auto auto)
none
means the model will not call a function and instead generates a message.abstract T
visitFunctionCallOption(ChatCompletionFunctionCallOption functionCallOption)
Specifying a particular function via {"name": "my_function"}
forces the model to call that function.T
unknown(JsonValue json)
-
-
Method Detail
-
visitAuto
abstract T visitAuto(ChatCompletionCreateParams.FunctionCall.Auto auto)
none
means the model will not call a function and instead generates a message.auto
means the model can pick between generating a message or calling a function.
-
visitFunctionCallOption
abstract T visitFunctionCallOption(ChatCompletionFunctionCallOption functionCallOption)
Specifying a particular function via
{"name": "my_function"}
forces the model to call that function.
-
-
-
-