Class ChatCompletionAllowedTools
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionAllowedToolsConstrains the tools available to the model to a pre-defined set. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classChatCompletionAllowedTools.BuilderA builder for ChatCompletionAllowedTools. public final classChatCompletionAllowedTools.ModeConstrains the tools available to the model to a pre-defined set. autoallows the model to pick from among the allowed tools and generate a message.requiredrequires the model to call one or more of the allowed tools.public final classChatCompletionAllowedTools.ToolA tool definition that the model should be allowed to call. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final ChatCompletionAllowedTools.Modemode()Constrains the tools available to the model to a pre-defined set. final List<ChatCompletionAllowedTools.Tool>tools()A list of tool definitions that the model should be allowed to call. final JsonField<ChatCompletionAllowedTools.Mode>_mode()Returns the raw JSON value of mode. final JsonField<List<ChatCompletionAllowedTools.Tool>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final ChatCompletionAllowedTools.BuildertoBuilder()final ChatCompletionAllowedToolsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionAllowedTools.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionAllowedTools. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        modefinal ChatCompletionAllowedTools.Mode mode() Constrains the tools available to the model to a pre-defined set. autoallows the model to pick from among the allowed tools and generate a message.requiredrequires the model to call one or more of the allowed tools.
 - 
                                        toolsfinal List<ChatCompletionAllowedTools.Tool> tools() A list of tool definitions that the model should be allowed to call. For the Chat Completions API, the list of tool definitions might look like: [ { "type": "function", "function": { "name": "get_weather" } }, { "type": "function", "function": { "name": "get_time" } } ]
 - 
                                        _modefinal JsonField<ChatCompletionAllowedTools.Mode> _mode() Returns the raw JSON value of mode. Unlike mode, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _toolsfinal JsonField<List<ChatCompletionAllowedTools.Tool>> _tools() Returns the raw JSON value of tools. Unlike tools, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal ChatCompletionAllowedTools.Builder toBuilder() 
 - 
                                        validatefinal ChatCompletionAllowedTools validate() 
 - 
                                        builderfinal static ChatCompletionAllowedTools.Builder builder() Returns a mutable builder for constructing an instance of ChatCompletionAllowedTools. The following fields are required: .mode() .tools()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-