Skip to content

Update ADK doc according to issue #1048 - 6 - Spanner QueryResultMode.DICT_LIST.** - #1054

Closed
adk-bot wants to merge 1 commit into
mainfrom
agent-changes-20251212-011945
Closed

Update ADK doc according to issue #1048 - 6 - Spanner QueryResultMode.DICT_LIST.**#1054
adk-bot wants to merge 1 commit into
mainfrom
agent-changes-20251212-011945

Conversation

@adk-bot

@adk-bot adk-bot commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator
  6. **[Feature] Document Spanner `QueryResultMode.DICT_LIST`.**

The Spanner tool now supports returning query results as a list of dictionaries.

Proposed Change:
In docs/tools/built-in-tools.md, update the Spanner section to include information about QueryResultMode.DICT_LIST.

Current state:
The documentation for the Spanner toolset is minimal.

Proposed Change:
Add the following to the Spanner section:

The `execute_sql` tool can now return results as a list of dictionaries. To enable this, set `query_result_mode=QueryResultMode.DICT_LIST` in `SpannerToolSettings`.

```python
from google.adk.tools.spanner.settings import QueryResultMode, SpannerToolSettings
from google.adk.tools.spanner.spanner_toolset import SpannerToolset

tool_settings = SpannerToolSettings(query_result_mode=QueryResultMode.DICT_LIST)
spanner_toolset = SpannerToolset(spanner_tool_settings=tool_settings)

**Reasoning**:
This new feature provides a more convenient way to work with Spanner query results, and it should be documented.

**Reference**:
- `src/google/adk/tools/spanner/settings.py`
- `src/google/adk/tools/spanner/query_tool.py`

@joefernandez joefernandez changed the title Update ADK doc according to issue #1048 - 6 Update ADK doc according to issue #1048 - 6 - Spanner QueryResultMode.DICT_LIST.** Jan 30, 2026
@jcwriter74

Copy link
Copy Markdown
Contributor

@jcwriter74

Copy link
Copy Markdown
Contributor

@zyantw zyantw reopened this Aug 21, 2026
@zyantw zyantw self-assigned this Aug 25, 2026
@zyantw

zyantw commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Closed with: #2183

@zyantw zyantw closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants