Class SqlToolConfig
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeaiagent.model.ToolConfig
-
- com.oracle.bmc.generativeaiagent.model.SqlToolConfig
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20240531") public final class SqlToolConfig extends ToolConfigThe configuration for SQL Tool.
Note: Objects should always be created or deserialized using theSqlToolConfig.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theSqlToolConfig.Builder, which maintain a set of all explicitly set fields calledSqlToolConfig.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqlToolConfig.Builderstatic classSqlToolConfig.DialectDialect to be used for SQL generation.static classSqlToolConfig.ModelSizeSize of the model.-
Nested classes/interfaces inherited from class com.oracle.bmc.generativeaiagent.model.ToolConfig
ToolConfig.ToolConfigType
-
-
Constructor Summary
Constructors Constructor Description SqlToolConfig(InputLocation iclExamples, InputLocation databaseSchema, Boolean shouldEnableSqlExecution, SqlToolConfig.Dialect dialect, SqlToolConfig.ModelSize modelSize, Boolean shouldEnableSelfCorrection, InputLocation tableAndColumnDescription, LlmCustomization generationLlmCustomization, DatabaseConnection databaseConnection)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlToolConfig.Builderbuilder()Create a new builder.booleanequals(Object o)DatabaseConnectiongetDatabaseConnection()InputLocationgetDatabaseSchema()SqlToolConfig.DialectgetDialect()Dialect to be used for SQL generation.LlmCustomizationgetGenerationLlmCustomization()InputLocationgetIclExamples()SqlToolConfig.ModelSizegetModelSize()Size of the model.BooleangetShouldEnableSelfCorrection()To enable/disable self correction.BooleangetShouldEnableSqlExecution()To enable/disable SQL execution.InputLocationgetTableAndColumnDescription()inthashCode()SqlToolConfig.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SqlToolConfig
@Deprecated public SqlToolConfig(InputLocation iclExamples, InputLocation databaseSchema, Boolean shouldEnableSqlExecution, SqlToolConfig.Dialect dialect, SqlToolConfig.ModelSize modelSize, Boolean shouldEnableSelfCorrection, InputLocation tableAndColumnDescription, LlmCustomization generationLlmCustomization, DatabaseConnection databaseConnection)
Deprecated.
-
-
Method Detail
-
builder
public static SqlToolConfig.Builder builder()
Create a new builder.
-
toBuilder
public SqlToolConfig.Builder toBuilder()
-
getIclExamples
public InputLocation getIclExamples()
-
getDatabaseSchema
public InputLocation getDatabaseSchema()
-
getShouldEnableSqlExecution
public Boolean getShouldEnableSqlExecution()
To enable/disable SQL execution.- Returns:
- the value
-
getDialect
public SqlToolConfig.Dialect getDialect()
Dialect to be used for SQL generation.- Returns:
- the value
-
getModelSize
public SqlToolConfig.ModelSize getModelSize()
Size of the model.- Returns:
- the value
-
getShouldEnableSelfCorrection
public Boolean getShouldEnableSelfCorrection()
To enable/disable self correction.- Returns:
- the value
-
getTableAndColumnDescription
public InputLocation getTableAndColumnDescription()
-
getGenerationLlmCustomization
public LlmCustomization getGenerationLlmCustomization()
-
getDatabaseConnection
public DatabaseConnection getDatabaseConnection()
-
toString
public String toString()
- Overrides:
toStringin classToolConfig
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classToolConfig- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classToolConfig
-
hashCode
public int hashCode()
- Overrides:
hashCodein classToolConfig
-
-