Commit Graph

26 Commits

Author SHA1 Message Date
Wenxin Du
9bad952060 feat: Add Cloud SQL for SQL Server Source and Tool (#223)
1. `sql/database` provides a `Scan()`interface to scan query results
into typed variables. Therefore we have to create a slice of typed
variables (types retrieved from rows.ColumnTypes()) to pass them into
`Scan()`. Using []byte works but makes the printing result different
from other tools (e.g [1] instead of %!s(int32=1)]
2. MS SQL supports both named (e.g @name) and positional args (e.g @p2),
so we have to check if the name is contained in the original statement
before passing them into `db.Query()` as either named arg or as values.
2025-01-23 21:21:12 +08:00
Kurtis Van Gent
1de3853006 chore: move sources documentation to docsite (#225)
Migrates the docs/sources documentation to the new docsite.

---------

Co-authored-by: Anubhav Dhawan <anubhav756@gmail.com>
2025-01-22 16:57:06 +00:00
Yuan
346c57da23 fix: improve return error for parameters (#206) 2025-01-14 16:35:33 +00:00
Michael Hunger
8a1224b9e0 feat: Added Neo4j Source and Tool (#189)
- configure neo4j source with url, username, password, database
- configure neo4j tools with cypher statement and paramters
- tests based on the postgres tests
- neo4j.yaml for integration tests
---------

Co-authored-by: duwenxin <duwenxin@google.com>
2025-01-14 09:17:18 -07:00
Wenxin Du
22bf137b8d ci(auth): Add OAuth integration test to Cloud SQL (#172)
1. Add generic integration test helpers for authenticated parameters and
auth-required tool invocations.
2. Call generic test helpers as Cloud SQL integration tests.
2025-01-14 14:02:50 +08:00
Wenxin Du
0c86e89506 fix(doc): Update example clientId field (#198) 2025-01-14 11:00:41 +08:00
Wenxin Du
e069520bb7 feat!: replace Source field ip_type with ipType for consistency (#197)
Replace `ip_type` with `ipType` to match the camel-case of the other
fields.
Update docs since we support both private and public IP connections.
2025-01-14 10:56:06 +08:00
Yuan
1fcc20a846 feat: add support for OpenTelemetry (#205)
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Wenxin Du <117315983+duwenxin99@users.noreply.github.com>
2025-01-13 15:38:38 -08:00
Kurtis Van Gent
141cae7702 docs: add site for hosting docs on github pages (#204)
Adds a static site generation using Hugo, and deployed to GitHub pages
(googleapis.github.io/genai-toolbox).
2025-01-13 15:37:31 -07:00
Twisha Bansal
c4e9da0028 chore(docs): Use project id instead of project name in source (#184) 2025-01-07 09:33:24 -08:00
Wenxin Du
bb0345767e fix: Fix config name in auth doc samples (#186)
The config names should be in camel case.
2025-01-06 13:45:25 -05:00
Twisha Bansal
8f2ad44fb4 chore(docs): Fix source kind in example (#175) 2024-12-30 09:07:44 -07:00
Twisha Bansal
6edcf36a2b chore: added period (#169) 2024-12-25 11:55:43 -08:00
Anubhav Dhawan
46f8bb3bc4 doc(langchain-sdk): Add guidance for configuring and using authenticated tools in Toolbox. (#146) 2024-12-18 12:54:57 -05:00
Wenxin Du
8ca7e91240 docs: Add auth source docs (#132)
Add authsources and authenticated parameter docs. Format some other .md
docs.

---------

Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
2024-12-17 13:49:43 -05:00
Yuan
bb30286e65 docs(spanner): add docs (#128) 2024-12-16 11:03:14 -08:00
Yuan
827d845759 docs: add ip_type reference to alloydb and cloudsql doc (#130)
Update source docs to include `ip_type` reference for config.
2024-12-11 22:16:10 +00:00
Yuan
e66cb423a7 docs(deploy/cloud-run): update deploy command (#109)
Update deploy command to include `--allow-unauthenticated`.
This is optional (hence commented out) and might only be needed for
certain projects.
2024-12-04 10:18:58 -08:00
Kurtis Van Gent
eacabf9439 chore: fix incorrect source name (#108)
Fix's the source name in one of the examples.
2024-12-04 09:51:05 -07:00
Kurtis Van Gent
d29a32936e docs: add intros to Cloud SQL and AlloyDB (#89)
Address a comment about getting started from Per.
2024-11-22 13:43:55 -07:00
Yuan
0af2222cb4 docs: add deploy to cloud run instructions (#36)
Instructions to deploy Toolbox to Cloud Run.

---------

Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-authored-by: Anubhav Dhawan <anubhavdhawan@google.com>
2024-11-11 09:10:43 -08:00
Twisha Bansal
972888b9d6 fix(docs): correct outdated references to tool kinds (#49) 2024-11-06 11:27:14 -07:00
Kurtis Van Gent
621f2c61f9 chore(docs): fix reference to pg-sql page (#44) 2024-11-01 23:22:09 +00:00
Kurtis Van Gent
f630965937 feat!: consolidate "x-postgres-generic" tools to "postgres-sql" tool (#43)
This PR introduces the following breaking change: The
`alloydb-pg-generic`, `cloud-sql-pg-generic`, and
`postgres-generic-tool` have been replaced by the `postgres-sql` tool,
which works with all 3 Postgres sources.

If you were using of the the previous tools, you will need to update it
as follows:
```diff
example_tool:
-    kind: cloud-sql-pg-generic
+    kind: postgres-sql
     source: my-cloud-sql-pg-instance
     description: some description
        statement: |
            SELECT * FROM SQL_STATEMENT;
        parameters:
        - name: country
          type: string
          description: some description
```

I'm proposing this change for the following reasons:
1. It provides greater flexibility between postgres-compatible sources
-- you can change between "postgres" and "alloydb-postgres" without
issue
2. The name "postgres-sql" is more clear that "postgres-generic" -- it
indicates it's a tool that runs SQL on the source
3. It's easier for us to maintain feature compatibility across a single
"postgres-sql" tool
2024-11-01 16:17:18 -07:00
Kurtis Van Gent
0a0d206efd docs: add documentation for tools (#40)
Adds more detailed documentation on tools and parameters.
2024-11-01 17:03:51 -06:00
Kurtis Van Gent
bf85e6f2fc docs: add detailed documentation for sources (#37)
Adds more detailed documentation for sources.
2024-10-31 20:25:12 +00:00