mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-08 14:15:36 -05:00
Different databases require different types for `Params` field when adding parameters to their statement. e.g. alloydb, cloudsql, and postgres uses `pgxpool` to query and build sql statement, whereas spanner uses `Spanner` library. Added a new `ParamValue` struct. `ParseParams` helper function parses arbitraryJSON object into `[]ParamValue`, and the tool's invoke will convert `[]ParamValue` into it's required type. --------- Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>