-
Notifications
You must be signed in to change notification settings - Fork 516
feat: add support for optional parameters #617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39f733b
to
612487a
Compare
duwenxin99
reviewed
May 27, 2025
kurtisvg
requested changes
Jun 4, 2025
jeffreyrubi
pushed a commit
to jeffreyrubi/genai-toolbox
that referenced
this pull request
Jun 7, 2025
9a9e660
to
8dba93f
Compare
kurtisvg
approved these changes
Jun 19, 2025
🧨 Preview deployments removed. |
github-actions bot
pushed a commit
that referenced
this pull request
Jun 20, 2025
Add a `default` field to parameters, that enables users to specify a default value. e.g. ``` parameters: - name: name type: string default: "some-default-value" description: The name of the hotel. ``` if this parameter is invoked without specifying `name`, the parameter would default to "some-default-value" For parameter manifest, there will be an additional `Required` field. The default `Required` field is true. If a `default` value is presented, `Required: false`. Array parameter's item's `Required` field will inherit the array's `Required` field. Fixes #475 4827771
github-actions bot
pushed a commit
to renovate-bot/googleapis-_-genai-toolbox
that referenced
this pull request
Jun 20, 2025
Add a `default` field to parameters, that enables users to specify a default value. e.g. ``` parameters: - name: name type: string default: "some-default-value" description: The name of the hotel. ``` if this parameter is invoked without specifying `name`, the parameter would default to "some-default-value" For parameter manifest, there will be an additional `Required` field. The default `Required` field is true. If a `default` value is presented, `Required: false`. Array parameter's item's `Required` field will inherit the array's `Required` field. Fixes googleapis#475 4827771
anubhav756
added a commit
to GoogleCloudPlatform/genai-databases-retrieval-app
that referenced
this pull request
Jun 26, 2025
This PR adds a tools file equivalent to all the tools in the Cymbal Air app. > [!NOTE] > This tools file makes use of the new optional params feature (`default: ""`) from [#617](googleapis/genai-toolbox#617).
duwenxin99
pushed a commit
to dennisg/genai-toolbox
that referenced
this pull request
Jul 1, 2025
Add a `default` field to parameters, that enables users to specify a default value. e.g. ``` parameters: - name: name type: string default: "some-default-value" description: The name of the hotel. ``` if this parameter is invoked without specifying `name`, the parameter would default to "some-default-value" For parameter manifest, there will be an additional `Required` field. The default `Required` field is true. If a `default` value is presented, `Required: false`. Array parameter's item's `Required` field will inherit the array's `Required` field. Fixes googleapis#475
Yuan325
added a commit
that referenced
this pull request
Jul 2, 2025
🤖 I have created a release *beep* *boop* --- ## [0.8.0](v0.7.0...v0.8.0) (2025-07-02) ### ⚠ BREAKING CHANGES * **postgres,mssql,cloudsqlmssql:** encode source connection url for sources ([#727](#727)) ### Features * Add support for multiple YAML configuration files ([#760](#760)) ([40679d7](40679d7)) * Add support for optional parameters ([#617](#617)) ([4827771](4827771)), closes [#475](#475) * **mcp:** Support MCP version 2025-03-26 ([#755](#755)) ([474df57](474df57)) * **sources/http:** Support disable SSL verification for HTTP Source ([#674](#674)) ([4055b0c](4055b0c)) * **tools/bigquery:** Add templateParameters field for bigquery ([#699](#699)) ([f5f771b](f5f771b)) * **tools/bigtable:** Add templateParameters field for bigtable ([#692](#692)) ([1c06771](1c06771)) * **tools/couchbase:** Add templateParameters field for couchbase ([#723](#723)) ([9197186](9197186)) * **tools/http:** Add support for HTTP Tool pathParams ([#726](#726)) ([fd300dc](fd300dc)) * **tools/redis:** Add Redis Source and Tool ([#519](#519)) ([f0aef29](f0aef29)) * **tools/spanner:** Add templateParameters field for spanner ([#691](#691)) ([075dfa4](075dfa4)) * **tools/sqlitesql:** Add templateParameters field for sqlitesql ([#687](#687)) ([75e254c](75e254c)) * **tools/valkey:** Add Valkey Source and Tool ([#532](#532)) ([054ec19](054ec19)) ### Bug Fixes * **bigquery,mssql:** Fix panic on tools with array param ([#722](#722)) ([7a6644c](7a6644c)) * **postgres,mssql,cloudsqlmssql:** Encode source connection url for sources ([#727](#727)) ([67964d9](67964d9)), closes [#717](#717) * Set default value to field's type during unmarshalling ([#774](#774)) ([fafed24](fafed24)), closes [#771](#771) * **server/mcp:** Do not listen from port for stdio ([#719](#719)) ([d51dbc7](d51dbc7)), closes [#711](#711) * **tools/mysqlexecutesql:** Handle nil panic and connection leak in Invoke ([#757](#757)) ([7badba4](7badba4)) * **tools/mysqlsql:** Handle nil panic and connection leak in invoke ([#758](#758)) ([cbb4a33](cbb4a33)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan <[email protected]>
github-actions bot
pushed a commit
that referenced
this pull request
Jul 2, 2025
🤖 I have created a release *beep* *boop* --- ## [0.8.0](v0.7.0...v0.8.0) (2025-07-02) ### ⚠ BREAKING CHANGES * **postgres,mssql,cloudsqlmssql:** encode source connection url for sources ([#727](#727)) ### Features * Add support for multiple YAML configuration files ([#760](#760)) ([40679d7](40679d7)) * Add support for optional parameters ([#617](#617)) ([4827771](4827771)), closes [#475](#475) * **mcp:** Support MCP version 2025-03-26 ([#755](#755)) ([474df57](474df57)) * **sources/http:** Support disable SSL verification for HTTP Source ([#674](#674)) ([4055b0c](4055b0c)) * **tools/bigquery:** Add templateParameters field for bigquery ([#699](#699)) ([f5f771b](f5f771b)) * **tools/bigtable:** Add templateParameters field for bigtable ([#692](#692)) ([1c06771](1c06771)) * **tools/couchbase:** Add templateParameters field for couchbase ([#723](#723)) ([9197186](9197186)) * **tools/http:** Add support for HTTP Tool pathParams ([#726](#726)) ([fd300dc](fd300dc)) * **tools/redis:** Add Redis Source and Tool ([#519](#519)) ([f0aef29](f0aef29)) * **tools/spanner:** Add templateParameters field for spanner ([#691](#691)) ([075dfa4](075dfa4)) * **tools/sqlitesql:** Add templateParameters field for sqlitesql ([#687](#687)) ([75e254c](75e254c)) * **tools/valkey:** Add Valkey Source and Tool ([#532](#532)) ([054ec19](054ec19)) ### Bug Fixes * **bigquery,mssql:** Fix panic on tools with array param ([#722](#722)) ([7a6644c](7a6644c)) * **postgres,mssql,cloudsqlmssql:** Encode source connection url for sources ([#727](#727)) ([67964d9](67964d9)), closes [#717](#717) * Set default value to field's type during unmarshalling ([#774](#774)) ([fafed24](fafed24)), closes [#771](#771) * **server/mcp:** Do not listen from port for stdio ([#719](#719)) ([d51dbc7](d51dbc7)), closes [#711](#711) * **tools/mysqlexecutesql:** Handle nil panic and connection leak in Invoke ([#757](#757)) ([7badba4](7badba4)) * **tools/mysqlsql:** Handle nil panic and connection leak in invoke ([#758](#758)) ([cbb4a33](cbb4a33)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan <[email protected]> f13e963
github-actions bot
pushed a commit
to renovate-bot/googleapis-_-genai-toolbox
that referenced
this pull request
Jul 2, 2025
🤖 I have created a release *beep* *boop* --- ## [0.8.0](googleapis/genai-toolbox@v0.7.0...v0.8.0) (2025-07-02) ### ⚠ BREAKING CHANGES * **postgres,mssql,cloudsqlmssql:** encode source connection url for sources ([googleapis#727](googleapis#727)) ### Features * Add support for multiple YAML configuration files ([googleapis#760](googleapis#760)) ([40679d7](googleapis@40679d7)) * Add support for optional parameters ([googleapis#617](googleapis#617)) ([4827771](googleapis@4827771)), closes [googleapis#475](googleapis#475) * **mcp:** Support MCP version 2025-03-26 ([googleapis#755](googleapis#755)) ([474df57](googleapis@474df57)) * **sources/http:** Support disable SSL verification for HTTP Source ([googleapis#674](googleapis#674)) ([4055b0c](googleapis@4055b0c)) * **tools/bigquery:** Add templateParameters field for bigquery ([googleapis#699](googleapis#699)) ([f5f771b](googleapis@f5f771b)) * **tools/bigtable:** Add templateParameters field for bigtable ([googleapis#692](googleapis#692)) ([1c06771](googleapis@1c06771)) * **tools/couchbase:** Add templateParameters field for couchbase ([googleapis#723](googleapis#723)) ([9197186](googleapis@9197186)) * **tools/http:** Add support for HTTP Tool pathParams ([googleapis#726](googleapis#726)) ([fd300dc](googleapis@fd300dc)) * **tools/redis:** Add Redis Source and Tool ([googleapis#519](googleapis#519)) ([f0aef29](googleapis@f0aef29)) * **tools/spanner:** Add templateParameters field for spanner ([googleapis#691](googleapis#691)) ([075dfa4](googleapis@075dfa4)) * **tools/sqlitesql:** Add templateParameters field for sqlitesql ([googleapis#687](googleapis#687)) ([75e254c](googleapis@75e254c)) * **tools/valkey:** Add Valkey Source and Tool ([googleapis#532](googleapis#532)) ([054ec19](googleapis@054ec19)) ### Bug Fixes * **bigquery,mssql:** Fix panic on tools with array param ([googleapis#722](googleapis#722)) ([7a6644c](googleapis@7a6644c)) * **postgres,mssql,cloudsqlmssql:** Encode source connection url for sources ([googleapis#727](googleapis#727)) ([67964d9](googleapis@67964d9)), closes [googleapis#717](googleapis#717) * Set default value to field's type during unmarshalling ([googleapis#774](googleapis#774)) ([fafed24](googleapis@fafed24)), closes [googleapis#771](googleapis#771) * **server/mcp:** Do not listen from port for stdio ([googleapis#719](googleapis#719)) ([d51dbc7](googleapis@d51dbc7)), closes [googleapis#711](googleapis#711) * **tools/mysqlexecutesql:** Handle nil panic and connection leak in Invoke ([googleapis#757](googleapis#757)) ([7badba4](googleapis@7badba4)) * **tools/mysqlsql:** Handle nil panic and connection leak in invoke ([googleapis#758](googleapis#758)) ([cbb4a33](googleapis@cbb4a33)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan <[email protected]> f13e963
duwenxin99
pushed a commit
that referenced
this pull request
Jul 2, 2025
🤖 I have created a release *beep* *boop* --- ## [0.8.0](v0.7.0...v0.8.0) (2025-07-02) ### ⚠ BREAKING CHANGES * **postgres,mssql,cloudsqlmssql:** encode source connection url for sources ([#727](#727)) ### Features * Add support for multiple YAML configuration files ([#760](#760)) ([40679d7](40679d7)) * Add support for optional parameters ([#617](#617)) ([4827771](4827771)), closes [#475](#475) * **mcp:** Support MCP version 2025-03-26 ([#755](#755)) ([474df57](474df57)) * **sources/http:** Support disable SSL verification for HTTP Source ([#674](#674)) ([4055b0c](4055b0c)) * **tools/bigquery:** Add templateParameters field for bigquery ([#699](#699)) ([f5f771b](f5f771b)) * **tools/bigtable:** Add templateParameters field for bigtable ([#692](#692)) ([1c06771](1c06771)) * **tools/couchbase:** Add templateParameters field for couchbase ([#723](#723)) ([9197186](9197186)) * **tools/http:** Add support for HTTP Tool pathParams ([#726](#726)) ([fd300dc](fd300dc)) * **tools/redis:** Add Redis Source and Tool ([#519](#519)) ([f0aef29](f0aef29)) * **tools/spanner:** Add templateParameters field for spanner ([#691](#691)) ([075dfa4](075dfa4)) * **tools/sqlitesql:** Add templateParameters field for sqlitesql ([#687](#687)) ([75e254c](75e254c)) * **tools/valkey:** Add Valkey Source and Tool ([#532](#532)) ([054ec19](054ec19)) ### Bug Fixes * **bigquery,mssql:** Fix panic on tools with array param ([#722](#722)) ([7a6644c](7a6644c)) * **postgres,mssql,cloudsqlmssql:** Encode source connection url for sources ([#727](#727)) ([67964d9](67964d9)), closes [#717](#717) * Set default value to field's type during unmarshalling ([#774](#774)) ([fafed24](fafed24)), closes [#771](#771) * **server/mcp:** Do not listen from port for stdio ([#719](#719)) ([d51dbc7](d51dbc7)), closes [#711](#711) * **tools/mysqlexecutesql:** Handle nil panic and connection leak in Invoke ([#757](#757)) ([7badba4](7badba4)) * **tools/mysqlsql:** Handle nil panic and connection leak in invoke ([#758](#758)) ([cbb4a33](cbb4a33)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a
default
field to parameters, that enables users to specify a default value.e.g.
if this parameter is invoked without specifying
name
, the parameter would default to "some-default-value"For parameter manifest, there will be an additional
Required
field. The defaultRequired
field is true. If adefault
value is presented,Required: false
. Array parameter's item'sRequired
field will inherit the array'sRequired
field.Fixes #475