mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-05-02 03:00:36 -04:00
refactor!: update Kind field to Type in source code (#2312)
Update source code `Kind` to `Type`. It's only changes within our code. Changes to yaml tag (that will affect users) will be done in later PRs. This is a breaking change since it updates telemetry's span attribute from `source_kind` to `source_type`. Related #817 Future updates will include: * Updating a preprocessing function to convert config file from v1 to v2 * Update unmarshal function for ToolsFile to convert config file (test will fail since the yaml tag is not yet updated). * Update yaml tag (test will pass).
This commit is contained in:
@@ -34,7 +34,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
listDatabasesToolKind = "cloud-sql-list-databases"
|
||||
listDatabasesToolType = "cloud-sql-list-databases"
|
||||
)
|
||||
|
||||
type listDatabasesTransport struct {
|
||||
@@ -205,7 +205,7 @@ func getListDatabasesToolsConfig() map[string]any {
|
||||
},
|
||||
"tools": map[string]any{
|
||||
"list-databases": map[string]any{
|
||||
"kind": listDatabasesToolKind,
|
||||
"kind": listDatabasesToolType,
|
||||
"source": "my-cloud-sql-source",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user