$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
高機能なAIエージェントを爆速で作る方法
Search
Mizuki Kameda
June 03, 2025
4
1.6k
高機能な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
35
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
510
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
How GitHub (no longer) Works
holman
316
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.8k
A Modern Web Designer's Workflow
chriscoyier
697
190k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Done Done
chrislema
186
16k
How STYLIGHT went responsive
nonsquared
100
5.9k
Into the Great Unknown - MozCon
thekraken
40
2.2k
How to train your dragon (web standard)
notwaldorf
97
6.4k
Typedesign – Prime Four
hannesfritz
42
2.9k
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 ͱ ࠷ߴͷΠϯϑϥ͕ γϯσϨϥϑΟοτ
࠷ߴͷΤʔδΣϯτ։ൃϥΠϑΛʂ