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 ToolConfig
The 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 class
SqlToolConfig.Builder
static class
SqlToolConfig.Dialect
Dialect to be used for SQL generation.static class
SqlToolConfig.ModelSize
Size 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.Builder
builder()
Create a new builder.boolean
equals(Object o)
DatabaseConnection
getDatabaseConnection()
InputLocation
getDatabaseSchema()
SqlToolConfig.Dialect
getDialect()
Dialect to be used for SQL generation.LlmCustomization
getGenerationLlmCustomization()
InputLocation
getIclExamples()
SqlToolConfig.ModelSize
getModelSize()
Size of the model.Boolean
getShouldEnableSelfCorrection()
To enable/disable self correction.Boolean
getShouldEnableSqlExecution()
To enable/disable SQL execution.InputLocation
getTableAndColumnDescription()
int
hashCode()
SqlToolConfig.Builder
toBuilder()
String
toString()
String
toString(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:
toString
in classToolConfig
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classToolConfig
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classToolConfig
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classToolConfig
-
-