Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
高機能なAIエージェントを爆速で作る方法
Search
Mizuki Kameda
June 03, 2025
4
1.5k
高機能なAIエージェントを爆速で作る方法
Cloudflare Workers Tech Talks in Tokyo #5
Mizuki Kameda
June 03, 2025
Tweet
Share
More Decks by Mizuki Kameda
See All by Mizuki Kameda
スケーラブルなMCPサーバ開発 -リモートMCPの現在地とこれから-
kmd09
0
31
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
480
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
480
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.6k
Agile that works and the tools we love
rasmusluckow
329
21k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Statistics for Hackers
jakevdp
799
220k
For a Future-Friendly Web
brad_frost
179
9.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
780
Code Review Best Practice
trishagee
70
19k
Git: the NoSQL Database
bkeepers
PRO
431
65k
Transcript
ߴػೳͳAIΤʔδΣϯτΛ രͰ࡞Δํ๏ Cloud fl are Workers Tech Talks in Tokyo
#5
ࣗݾհ ُాਸ਼و .BDCFF1MBOFU71PG3% ઑٕͬͨज़ͳΜͰ ͖ͳٕज़ྖҬ .-%48FC% 8FC(-8FC(16 ిࢠ࡞ ͦͷଞͷͩ͜ΘΓ
ָثίʔώʔᖿḦΧϝϥ !LNE@
͍͑ͨ͜ͱ
Mastra࠷ߴ Cloud fl are࠷ߴ ͜ͷΈ߹Θͤ࠷ߴ(γϯσϨϥϑΟοτ) ͻͱ݄΄ͲલඍົͳΈ߹ΘͤͰ͕ͨ͠ ࠓ࠷ߴͰ͢ʂ ϦϞʔτʹΤʔδΣϯτΛ࡞Δͱ͖
Mastra • HonoϕʔεͷOSS ΤʔδΣϯτ/ϫʔΫϑϩʔϑϨʔϜϫʔΫ • Battery Included(RAGMemory, VoiceͳͲͷ࿈ܞ͕ඪ४උ) • OpenAPI४ڌ,
Swagger UI, OpenTelemetry४ڌͳͲ্࣮ͰؾʹͳΔ෦ ͕શ෦ೖΓ • MCP, A2A, AG-UIͳͲͷϓϩτίϧΛαϙʔτ
࠷ߴ
ɹΤʔδΣϯτ։ൃ͋Δ͋Δ FWͷൃలʹΑΓ ϩʔΧϧͰಈ͘ͱ͜Ζ·Ͱྑ͍͕ ΠϯϑϥʹࡌͤΔͱ͜Ζ͕ਏ͍
ϦϞʔτ࣮ߦͷ՝ • Πϯϑϥڥͷߏஙӡ༻ͷ͕େ͖͍ • ྫ: AWS, GCP্ͷίϯςφج൫(ECS, CloudRunͳͲ) • ґଘ͕ଟ͍
• VectorDB, LLM, DB.. • ӡ༻͕؆୯ͳͷߴίετ͔ͭϩοΫΠϯͷϦεΫ͕େ͖͍ • ྫ: FWͷCloud(Dify Cloud, Mastra Cloud), JS༻PaaS(Net fl ify, Vercel)
ͦ͜Ͱ Cloud fl are Workers ͱͦͷؒͨͪ
Cloud fl areͳཧ༝ 1. Agentʹదͨ͠Πϯϑϥಛ 2. Mastraͷ΄΅શͯͷ֎෦ґଘʹରԠ(ϑϧϚωʔδυͰఏڙ) 3. ؆୯σϓϩΠ
1. Agentʹ͋ͬͨಛ • 0 ms εϐϯΞοϓ • CPU࣮ߦ࣌ؒͱϦΫΤετͷ • αϒϦΫΤετͷϨεϙϯεͪCPU࣮ߦ࣌ؒʹೖΒͳ͍
• ࠷ߴͳεέʔϥϏϦςΟ
2. ΄΅શͯͷ֎෦ґଘʹରԠ
શํҐ͋Δͷوॏ خ͍͠ʂ
؆୯σϓϩΠ 1. @mastra/deployer-cloud fl are ͷґଘΛՃ͢Δ (ྫ:bun install @mastra/deployer-cloud fl
are) 2. MastraΠϯελϯεఆٛ࣌ʹdeployerΛఆٛ͢Δ 3. buildՌʹରͯ͠wrangler deploy(CF WorkersͷσϓϩΠίϚϯυ) 4. σϓϩΠ͞ΕɺURL͕ൃߦ͞ΕΔ 20254݄17Ҏલͷόʔδϣϯͩͱ wrangler deployͰ͖ͳ͍ͷͰҙ
࠷ߴͷFW ͱ ࠷ߴͷΠϯϑϥ͕ γϯσϨϥϑΟοτ
࠷ߴͷΤʔδΣϯτ։ൃϥΠϑΛʂ