Skip to content

chore!:update config kind from plural to singular#2737

Open
Yuan325 wants to merge 1 commit intoremove-deprecationfrom
naming-singular
Open

chore!:update config kind from plural to singular#2737
Yuan325 wants to merge 1 commit intoremove-deprecationfrom
naming-singular

Conversation

@Yuan325
Copy link
Contributor

@Yuan325 Yuan325 commented Mar 13, 2026

Update all the kind value from plural to singular. This breaking change only affect users that are currently using the config file v2 format.

Config file with the v1 format will still be compatible since we manually convert the config file to the right format under the hood.

@Yuan325 Yuan325 requested review from a team as code owners March 13, 2026 02:45
@Yuan325 Yuan325 changed the title chore!:update config kinds from plural to singular chore!:update config kind from plural to singular Mar 13, 2026
@github-actions
Copy link
Contributor

Link Resolution Note

Local links and directory changes work differently on GitHub than on the docsite. You must ensure fixes pass the GitHub check and also work with hugo server.
See Link Checking and Fixing with Lychee for more details.

Summary

Status Count
🔍 Total 958
✅ Successful 773
⏳ Timeouts 0
👻 Excluded 29
❓ Unknown 0
🚫 Errors 53
⛔ Unsupported 0

Errors per input

Errors in DEVELOPER.md

  • [ERROR] https://play.dgraph.io/ | Network error: Connection failed. Check network connectivity and firewall settings (error sending request for url (https://play.dgraph.io/)): Connection failed. Check network connectivity and firewall settings

Errors in docs/en/resources/sources/alloydb-admin.md

Errors in docs/en/resources/sources/bigquery.md

Errors in docs/en/resources/sources/cloud-healthcare.md

Errors in docs/en/resources/sources/cloud-logging-admin.md

Errors in docs/en/resources/sources/cloud-monitoring.md

Errors in docs/en/resources/sources/cloud-sql-mysql.md

Errors in docs/en/resources/sources/cloud-sql-pg.md

Errors in docs/en/resources/sources/dataplex.md

Errors in docs/en/resources/sources/dataproc.md

Errors in docs/en/resources/sources/redis.md

Errors in docs/en/resources/sources/serverless-spark.md

Errors in docs/en/resources/sources/spanner.md

Errors in docs/en/resources/sources/valkey.md

Errors in docs/en/resources/tools/alloydb/alloydb-create-cluster.md

Errors in docs/en/resources/tools/alloydb/alloydb-create-instance.md

Errors in docs/en/resources/tools/alloydb/alloydb-create-user.md

Errors in docs/en/resources/tools/bigquery/bigquery-sql.md

Errors in docs/en/resources/tools/bigtable/bigtable-sql.md

Errors in docs/en/resources/tools/cloudsql/cloudsqlcloneinstance.md

Errors in docs/en/resources/tools/cloudsql/cloudsqlrestorebackup.md

Errors in docs/en/resources/tools/spanner/spanner-sql.md

Errors in docs/en/samples/alloydb/mcp_quickstart.md

Full Github Actions output

@github-actions
Copy link
Contributor

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a significant refactoring of configuration definitions, moving from plural to singular naming conventions for 'kind' fields. This change enhances consistency and readability across configuration files, internal parsing logic, and user-facing documentation. The update ensures that the system uniformly recognizes and processes configuration types, simplifying future development and maintenance efforts.

Highlights

  • Configuration Consistency: Standardized all configuration 'kind' fields from plural to singular forms (e.g., 'tools' to 'tool', 'sources' to 'source') across the codebase.
  • Codebase Adaptation: Updated the internal configuration parsing logic in Go to correctly interpret the new singular 'kind' names.
  • Documentation Alignment: Synchronized all documentation, including Markdown files and Jupyter notebooks, to reflect the singular 'kind' naming convention in YAML examples and descriptive text.
  • Test Suite Updates: Modified numerous test cases to align with the new singular 'kind' naming, ensuring continued correctness of configuration parsing.
Changelog
  • DEVELOPER.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • README.md
    • Updated 'kind' fields in YAML examples and descriptive text from plural to singular forms for sources, tools, toolsets, and prompts.
  • cmd/internal/tools_file.go
    • Added logic to convert plural 'kind' keys to singular forms during configuration processing.
    • Updated a comment and a condition from 'toolsets' to 'toolset'.
    • Modified a comment regarding resource names to use singular forms.
  • cmd/internal/tools_file_test.go
    • Updated numerous YAML test inputs to use singular 'kind' names for sources, authServices, tools, toolsets, prompts, and embeddingModels.
  • cmd/root_test.go
    • Updated YAML strings in test content to use singular 'kind' names for tools, sources, and toolsets.
  • docs/en/getting-started/colab_quickstart.ipynb
    • Updated 'kind' fields in Python string literals representing YAML content to singular forms for sources, tools, and toolsets.
  • docs/en/getting-started/configure.md
    • Updated 'kind' fields in YAML examples and descriptive text to singular forms for sources, tools, toolsets, and prompts.
  • docs/en/getting-started/mcp_quickstart/_index.md
    • Updated 'kind' fields in YAML examples to singular forms for sources, tools, and toolsets.
  • docs/en/getting-started/prompts_quickstart_gemini_cli.md
    • Updated 'kind' fields in YAML examples to singular forms for sources, tools, and prompts.
  • docs/en/getting-started/quickstart/shared/configure_toolbox.md
    • Updated 'kind' fields in YAML examples to singular forms for sources, tools, and toolsets.
  • docs/en/resources/authServices/_index.md
    • Updated 'kind: authServices' to 'kind: authService' in YAML examples and descriptive text.
  • docs/en/resources/authServices/google.md
    • Updated 'kind: authServices' to 'kind: authService' in a YAML example.
  • docs/en/resources/embeddingModels/_index.md
    • Updated descriptive text and YAML examples to use 'embeddingModel' instead of 'embeddingModels'.
    • Updated 'kind: tools' to 'kind: tool' in related tool examples.
  • docs/en/resources/embeddingModels/gemini.md
    • Updated 'kind: embeddingModels' to 'kind: embeddingModel' in a YAML example.
  • docs/en/resources/prompts/_index.md
    • Updated 'kind: prompts' to 'kind: prompt' in a YAML example.
  • docs/en/resources/prompts/custom/_index.md
    • Updated 'kind: prompts' to 'kind: prompt' in YAML examples.
  • docs/en/resources/sources/_index.md
    • Updated descriptive text and a YAML example to use 'source' instead of 'sources'.
  • docs/en/resources/sources/alloydb-admin.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/alloydb-pg.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/bigquery.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/bigtable.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/cassandra.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/clickhouse.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/cloud-gda.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/cloud-healthcare.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/cloud-logging-admin.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/cloud-monitoring.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/cloud-sql-admin.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/cloud-sql-mssql.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/cloud-sql-mysql.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/cloud-sql-pg.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/couchbase.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/dataplex.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/dataproc.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/dgraph.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/elasticsearch.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/firebird.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/firestore.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/http.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/looker.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/mariadb.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/mindsdb.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/mongodb.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/mssql.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/mysql.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/neo4j.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/oceanbase.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/oracle.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/postgres.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/redis.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/serverless-spark.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/singlestore.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/snowflake.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/spanner.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/sqlite.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/tidb.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/trino.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/sources/valkey.md
    • Updated 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/sources/yugabytedb.md
    • Updated 'kind: sources' to 'kind: source' in a YAML example.
  • docs/en/resources/tools/_index.md
    • Updated descriptive text and YAML examples to use 'tool' instead of 'tools'.
    • Updated comments to refer to 'authService' instead of 'authServices'.
  • docs/en/resources/tools/alloydb/alloydb-create-cluster.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-create-instance.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-create-user.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-get-cluster.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-get-instance.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-get-user.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-list-clusters.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-list-instances.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-list-users.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydb/alloydb-wait-for-operation.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/alloydbainl/alloydb-ai-nl.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-analyze-contribution.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-conversational-analytics.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-forecast.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-get-dataset-info.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-get-table-info.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-list-dataset-ids.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-list-table-ids.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-search-catalog.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/bigquery/bigquery-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/bigtable/bigtable-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/cassandra/cassandra-cql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/clickhouse/clickhouse-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/clickhouse/clickhouse-list-databases.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/clickhouse/clickhouse-list-tables.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/clickhouse/clickhouse-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/cloudgda/cloud-gda-query.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-fhir-fetch-page.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-fhir-patient-everything.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-fhir-patient-search.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-get-dataset.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-get-dicom-store-metrics.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-get-dicom-store.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-get-fhir-resource.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-get-fhir-store-metrics.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-get-fhir-store.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-list-dicom-stores.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-list-fhir-stores.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-retrieve-rendered-dicom-instance.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-search-dicom-instances.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-search-dicom-series.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudhealthcare/cloud-healthcare-search-dicom-studies.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudloggingadmin/cloud-logging-admin-list-log-names.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudloggingadmin/cloud-logging-admin-list-resource-types.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudloggingadmin/cloud-logging-admin-query-logs.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudmonitoring/cloud-monitoring-query-prometheus.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlcloneinstance.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/cloudsql/cloudsqlcreatebackup.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlcreatedatabase.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlcreateusers.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlgetinstances.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqllistdatabases.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqllistinstances.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlmssqlcreateinstance.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlmysqlcreateinstance.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlpgcreateinstances.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlpgupgradeprecheck.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlrestorebackup.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/cloudsql/cloudsqlwaitforoperation.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/couchbase/couchbase-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/dataform/dataform-compile-local.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataplex/dataplex-lookup-entry.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataplex/dataplex-search-aspect-types.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataplex/dataplex-search-entries.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataproc/dataproc-get-cluster.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataproc/dataproc-get-job.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataproc/dataproc-list-clusters.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dataproc/dataproc-list-jobs.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/dgraph/dgraph-dql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/elasticsearch/elasticsearch-esql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firebird/firebird-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firebird/firebird-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/firestore/firestore-add-documents.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/firestore/firestore-delete-documents.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firestore/firestore-get-documents.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firestore/firestore-get-rules.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firestore/firestore-list-collections.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firestore/firestore-query-collection.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/firestore/firestore-query.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/firestore/firestore-update-document.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/firestore/firestore-validate-rules.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/http/http.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/looker/looker-add-dashboard-element.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-add-dashboard-filter.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-conversational-analytics.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-create-project-directory.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-create-project-file.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-delete-project-directory.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-delete-project-file.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-dev-mode.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-generate-embed-url.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-connection-databases.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-connection-schemas.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-connection-table-columns.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-connection-tables.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-connections.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-dashboards.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-dimensions.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-explores.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-filters.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-looks.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-measures.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-models.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-parameters.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-project-directories.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-project-file.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-project-files.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-get-projects.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-health-analyze.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-health-pulse.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-health-vacuum.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-make-dashboard.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-make-look.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-query-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-query-url.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-query.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-run-dashboard.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-run-look.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/looker/looker-update-project-file.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mindsdb/_index.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mindsdb/mindsdb-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' and 'kind: sources' to 'kind: source' in YAML examples.
  • docs/en/resources/tools/mindsdb/mindsdb-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/mongodb/mongodb-aggregate.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-delete-many.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-delete-one.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-find-one.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-find.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-insert-many.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-insert-one.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-update-many.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mongodb/mongodb-update-one.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mssql/mssql-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mssql/mssql-list-tables.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mssql/mssql-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/mysql/mysql-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mysql/mysql-get-query-plan.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mysql/mysql-list-active-queries.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mysql/mysql-list-table-fragmentation.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mysql/mysql-list-tables-missing-unique-indexes.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mysql/mysql-list-tables.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/mysql/mysql-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/neo4j/neo4j-cypher.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/neo4j/neo4j-execute-cypher.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/neo4j/neo4j-schema.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/oceanbase/oceanbase-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/oceanbase/oceanbase-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/oracle/oracle-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-database-overview.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-get-column-cardinality.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-active-queries.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-available-extensions.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-database-stats.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-indexes.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-installed-extensions.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-locks.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-pg-settings.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-publication-tables.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-query-stats.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-roles.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-schemas.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-sequences.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-stored-procedure.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-table-stats.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-tables.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-tablespaces.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-triggers.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-list-views.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-long-running-transactions.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-replication-stats.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/postgres/postgres-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/redis/redis.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-cancel-batch.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-create-pyspark-batch.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-create-spark-batch.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-get-batch.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-get-session-template.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-get-session.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-list-batches.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/serverless-spark/serverless-spark-list-sessions.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/singlestore/singlestore-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/singlestore/singlestore-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/snowflake/snowflake-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/snowflake/snowflake-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/spanner/spanner-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/spanner/spanner-list-graphs.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/spanner/spanner-list-tables.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/spanner/spanner-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/sqlite/sqlite-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/sqlite/sqlite-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/tidb/tidb-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/tidb/tidb-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/trino/trino-execute-sql.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/trino/trino-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/resources/tools/utility/wait.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/valkey/valkey.md
    • Updated 'kind: tools' to 'kind: tool' in a YAML example.
  • docs/en/resources/tools/yuagbytedb/yugabytedb-sql.md
    • Updated 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/samples/alloydb/ai-nl/alloydb_ai_nl.ipynb
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in Python string literals.
  • docs/en/samples/alloydb/mcp_quickstart.md
    • Updated 'kind: sources' to 'kind: source', 'kind: tools' to 'kind: tool', and 'kind: toolsets' to 'kind: toolset' in YAML examples and descriptive text.
  • docs/en/samples/bigquery/colab_quickstart_bigquery.ipynb
    • Updated 'kind: sources' to 'kind: source', 'kind: tools' to 'kind: tool', and 'kind: toolsets' to 'kind: toolset' in Python string literals.
  • docs/en/samples/bigquery/local_quickstart.md
    • Updated 'kind: sources' to 'kind: source', 'kind: tools' to 'kind: tool', and 'kind: toolsets' to 'kind: toolset' in YAML examples and descriptive text.
  • docs/en/samples/bigquery/mcp_quickstart/_index.md
    • Updated 'kind: sources' to 'kind: source', 'kind: tools' to 'kind: tool', and 'kind: toolsets' to 'kind: toolset' in YAML examples.
  • docs/en/samples/neo4j/mcp_quickstart.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/samples/snowflake/_index.md
    • Updated 'kind: sources' to 'kind: source' and 'kind: tools' to 'kind: tool' in YAML examples.
  • docs/en/samples/snowflake/snowflake-config.yaml
    • Updated 'kind: sources' to 'kind: source', 'kind: tools' to 'kind: tool', and 'kind: toolsets' to 'kind: toolset' in YAML examples.
  • docs/en/sdks/JS-sdk/adk/index.md
    • Updated descriptive text to refer to 'authService' instead of 'authServices'.
  • docs/en/sdks/JS-sdk/core/index.md
    • Updated descriptive text to refer to 'authService' instead of 'authServices'.
  • docs/en/sdks/go-sdk/core/_index.md
    • Updated descriptive text to refer to 'authService' instead of 'authServices'.
  • docs/en/sdks/go-sdk/tbadk/_index.md
    • Updated descriptive text to refer to 'authService' instead of 'authServices'.
  • docs/en/sdks/python-sdk/core/index.md
    • Updated descriptive text to refer to 'authService' instead of 'authServices'.
  • internal/embeddingmodels/gemini/gemini_test.go
    • Updated 'kind: embeddingModels' to 'kind: embeddingModel' in YAML test inputs.
  • internal/server/config.go
    • Modified the 'UnmarshalResourceConfig' function to change switch cases from plural to singular for various configuration kinds.
  • internal/sources/alloydbadmin/alloydbadmin_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/alloydbpg/alloydb_pg_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/bigquery/bigquery_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/bigtable/bigtable_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cassandra/cassandra_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/clickhouse/clickhouse_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudgda/cloud_gda_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudhealthcare/cloud_healthcare_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudloggingadmin/cloud_logging_admin_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudmonitoring/cloud_monitoring_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudsqladmin/cloud_sql_admin_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudsqlmssql/cloud_sql_mssql_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudsqlmysql/cloud_sql_mysql_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/cloudsqlpg/cloud_sql_pg_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/couchbase/couchbase_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/dataplex/dataplex_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/dataproc/dataproc_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/dgraph/dgraph_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/elasticsearch/elasticsearch_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/firebird/firebird_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/firestore/firestore_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/http/http_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/looker/looker_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/mindsdb/mindsdb_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/mongodb/mongodb_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/mssql/mssql_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
  • internal/sources/mysql/mysql_test.go
    • Updated 'kind: sources' to 'kind: source' in YAML test inputs.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@Yuan325 Yuan325 changed the base branch from main to remove-deprecation March 13, 2026 02:58
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a breaking change by updating the configuration kind values from plural to singular across the entire project. The changes are extensive, affecting documentation, tests, and configuration parsing logic. The implementation correctly handles backward compatibility for the v1 configuration format. My main feedback is a suggestion to refactor a block of if statements into a switch statement for improved code clarity and maintainability in cmd/internal/tools_file.go.

Comment on lines 127 to +147
if key == "authSources" {
key = "authServices"
}
if key == "sources" {
key = "source"
}
if key == "authServices" {
key = "authService"
}
if key == "embeddingModels" {
key = "embeddingModel"
}
if key == "tools" {
key = "tool"
}
if key == "toolsets" {
key = "toolset"
}
if key == "prompts" {
key = "prompt"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This series of if statements for converting old configuration keys to new ones could be simplified and made more readable by using a switch statement. This would make the logic clearer, especially the chained conversion of authSources to authService, and improve future maintainability.

switch key {
case "authSources", "authServices":
	key = "authService"
case "sources":
	key = "source"
case "embeddingModels":
	key = "embeddingModel"
case "tools":
	key = "tool"
case "toolsets":
	key = "toolset"
case "prompts":
	key = "prompt"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants