You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add support for read-only in Spanner tool (#563)
Allowing user to add `readOnly` field in spanner tools.
The existing tool doesn't work for reading schema tables since schema
tables can only be accessed through read-only transaction.
This PR also resolve#435 for Spanner tool.
---------
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/en/resources/tools/spanner-sql.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,3 +124,4 @@ tools:
124
124
| description | string | true | Description of the tool that is passed to the LLM. |
125
125
| statement | string | true | SQL statement to execute on. |
126
126
| parameters |[parameters](_index#specifying-parameters)| false | List of [parameters](_index#specifying-parameters) that will be inserted into the SQL statement. |
127
+
| readOnly | bool | false | When set to `true`, the `statement` is run as a read-only transaction. Default: `false`. |
0 commit comments