pub enum FunctionCallingMode {
ModeUnspecified,
Auto,
Any,
None,
Validated,
}
Expand description
Defines the execution behavior for function calling by defining the execution mode
Variants§
ModeUnspecified
Unspecified function calling mode. This value should not be used.
Auto
Default model behavior, model decides to predict either a function call or a natural language response.
Any
Model is constrained to always predicting a function call only. If “allowedFunctionNames” are set, the predicted function call will be limited to any one of “allowedFunctionNames”, else the predicted function call will be any one of the provided “functionDeclarations”.
None
Model will not predict any function call. Model behavior is same as when not passing any function declarations.
Validated
Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding.
Trait Implementations§
Source§impl Clone for FunctionCallingMode
impl Clone for FunctionCallingMode
Source§fn clone(&self) -> FunctionCallingMode
fn clone(&self) -> FunctionCallingMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more