Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
adk-samples に学ぶデータ分析 LLM エージェント開発
Search
na0
November 23, 2025
Technology
1.9k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
adk-samples に学ぶデータ分析 LLM エージェント開発
DevFest Tokyo 2025
https://gdg-tokyo.connpass.com/event/369416/
na0
November 23, 2025
More Decks by na0
See All by na0
AI Agent 最前線: Agent Development Kit (ADK) から見る AI Agent に必要なインフラ
na0
1
1.2k
データエージェントのためのナレッジカタログ
na0
4
4k
データ活用 3.0 with Socrates
na0
2
2.3k
AI 時代のデータ戦略
na0
8
6.6k
BigQuery でできること、人間がやるべきこと
na0
0
1.4k
データ分析エージェント Socrates の育て方
na0
10
7.3k
AI エージェントと考え直すデータ基盤
na0
26
13k
メルカリにおけるデータアナリティクス AI エージェント「Socrates」と ADK 活用事例
na0
29
37k
BigQuery リリースノート - 2023年上半期 #bq_sushi
na0
3
540
Other Decks in Technology
See All in Technology
幾何アルゴリズムで なめらかなピン操作を / iOSDC Japan 2026 / smoothpin
kazumanagano
0
250
Snowflakeで実現する全社横断の顧客の声(VOC)分析・活用基盤@Snowflake World Tour Tokyo 2026
yuto16
0
160
あるけみー式LTスライド作成術
alchemy1115
1
170
「重なり」は迎える側がつくる ― 人もAIエージェントも歓迎するプロダクトエンジニアリング ―
go0517go
PRO
0
280
WAF 運用改善の承認サイクル/SRE_BizReach_MIXI_1
visional_engineering_and_design
2
420
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/6 - 2026/8
oracle4engineer
PRO
0
140
AI時代だからこそ、スケールしないことをやろう
yutashigemura
1
130
AIオーケストレーションを活用した 開発ワークフローの設計と実践
bqnq
0
130
多層防御と最⼩権限で実現する、安全なAIエージェント設計パターン
lycorptech_jp
PRO
1
250
SQL文一行も書けない人事がCortexもろもろを使って人事業務を楽にしてみる
ponponmikankan
1
210
#jawssonic2026 あの時代が悪かった ~動かなかったSageMakerと共に迎えたイベント当日~
ktkn1129
0
140
Webとヘルスデータ
yukukotani
1
370
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
270
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
270
The Spectacular Lies of Maps
axbom
PRO
1
990
[SF Ruby Conf 2025] Rails X
palkan
2
1.4k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
320
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Fireside Chat
paigeccino
43
4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
Become a Pro
speakerdeck
PRO
31
6.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
400
Transcript
Editable Location Naofumi Yamada @na0fu3y Analytics Engineer, Mercari, Inc. adk-samples
に学ぶ データ分析 LLM Agent 開発
na0 メルカリでデータ分析 LLM Agent をつくっている人。 Google Developer Expert - Cloud。
LLM Agent 開発の課題意識 • PoC したいけど最小構成って? • どう育てればよい?
今日のゴール • adk-samples を開発の羅針盤だと理解する • データ分析を例として育て方を理解する • 「使える」データ分析エージェントを持ち帰る
github.com/google/ adk-samples
30+ のサンプルエージェント • 双方向対話 bidi-demo • データ分析 data-science • 調査
deep-search • などなど...!
bidi-demo Google 検索できる 音声応答 Agent
from google.adk.agents import Agent from google.adk.tools import google_search agent =
Agent( name="google_search_agent", model="gemini-live-2.5-flash-preview-native-audio-09-2025", tools=[google_search], instruction="You are a helpful assistant." ) adk-samples/python/agents/bidi-demo/
data-science BigQuery と Python を扱うデータ分析 Agent
data-science のツール • BigQuery クエリ実行 • AlloyDB クエリ実行 • BigQuery
ML に関する知識検索 • 自然言語 to SQL • Python 実行
私たちに必須なツールは ...? • BigQuery クエリ実行 • AlloyDB クエリ実行 • BigQuery
ML に関する知識検索 • 自然言語 to SQL • Python 実行
私たちの Agent v1 from google.adk.agents import Agent from google.adk.tools.bigquery import
BigQueryToolset bigquery_toolset = BigQueryToolset(tool_filter=["execute_sql"]) root_agent = Agent( model="gemini-3-pro-preview", name="sample", instruction="You are a data science agent", tools=[bigquery_toolset], )
私たちの Agent v1 BigQuery にクエリを 実行できる
次の私たちに必要なツールは ...? • BigQuery クエリ実行 • BigQuery のテーブルの詳細を確認する • BigQuery
のテーブルを一覧する
私たちの Agent v2 bigquery_toolset = BigQueryToolset( tool_filter=[ "get_table_info", "list_table_ids", "execute_sql",
] )
私たちの Agent v2 データを教えると勝 手に調べて分析して くれる
私たちが他に必要なツールは ...? • BigQuery クエリ実行 • BigQuery のテーブルの詳細を確認する • BigQuery
のテーブルを検索する 一覧する
私たちの Agent v3 def rag_response(query: str) -> str: response =
rag.retrieval_query( rag_resources=[rag.RagResource(rag_corpus=OUR_CORPUS)], text=query, ) return str(response) root_agent = Agent( tools=[bigquery_toolset, rag_response], // 変更のない引数略 )
私たちの Agent v3 データを教えなくても 勝手に調べて分析し てくれる
そろそろガードレールも? • 利用者権限の認可下で動かす ◦ BigQuery クエリ実行 ◦ BigQuery のテーブルの詳細を確認する •
BigQuery のテーブルを検索する
私たちの Agent v4 credentials_config = BigQueryCredentialsConfig( client_id=os.getenv("OAUTH_CLIENT_ID"), client_secret=os.getenv("OAUTH_CLIENT_SECRET"), ) bigquery_toolset
= BigQueryToolset( tool_filter=["get_table_info", "execute_sql"], credentials_config=credentials_config )
私たちがやるべきこと • 欲望を言語化する ◦ 利用者目線の欲望レベルを上げていく ◦ 管理者目線のガードレールも忘れずに • つくる •
くりかえす
欲望が見つからない時は? • Gemini や同僚と話す • adk-samples を眺める • (na0 と話す)
私たちがやるべきこと(再) • LLM と協力して、欲望を言語化する • LLM と協力して、つくる • くりかえす
deep-search Deep Research の 実装例
ん? • Google 検索ツールを BigQuery やドキュメントを 参照するツールに置き換えたら...?
私たちがやるべきこと(再々) • LLM と協力して、欲望を言語化する • LLM と協力して、つくる • くりかえす