ToolChoiceMode.of constructor
ToolChoiceMode.of(
- String value
The value value; one outside the schema is kept as is.
Implementation
factory ToolChoiceMode.of(String value) => switch (value) {
'auto' => auto,
'none' => none,
'required' => required,
_ => ToolChoiceMode._(value),
};