Opal
Introducing Opal: describe, create, and share your AI mini-apps - Google Developers Blog
https://developers.googleblog.com/en/introducing-opal/
Opal のご紹介: AI ミニアプリの記述、作成、共有 - Google Developers Blog
https://developers.googleblog.com/ja/introducing-opal/
City Games
City Games でしょ。まずは。
Create immersive game with AI-generated concepts and visuals
AIが生成したコンセプトとビジュアルで没入感のあるゲームを作成する
入力
- Location:
Tokyo
- Genre:
SF
出力
ゲームコンセプト
A high-stakes sci-fi stealth-action game set in a near-future, humid Tokyo where an augmented operative navigates the neon-soaked, sweltering streets of Shibuya and Shinjuku, infiltrates a tech-augmented Sensoji Temple, and battles rogue AI on the observation decks of the Tokyo Skytree under a relentless late July heatwave, with reflections of holographic ads shimmering on hot, humid asphalt.
近未来の湿度の高い東京を舞台にした、ハイステークスなSFステルスアクションゲームです。サイバー強化された工作員が、ネオン輝く蒸し暑い渋谷と新宿の街を駆け抜け、テクノロジーで強化された浅草寺に潜入し、7月下旬の猛暑の中、東京スカイツリーの展望台で暴走したAIと戦います。熱く湿ったアスファルトには、ホログラム広告の光が揺らめいています。
蒸し暑い東京
武装された浅草寺に潜入
7月の猛暑
東京スカイツリーの展望台で暴走AIと戦う
なにこれ楽しそう!!!!!!!!
ところで、なぜこうなった?
所感
Opalでは処理内容を確認出来るので、見ていたところ...
なにかと Calling gemini-2.5-flash-preview
しており、その中で、
- Google Search
- Places API で Tokyo の情報を取得
- 新宿とか渋谷とか、下北沢(SHIMOKITA)とか、かっぱ橋とか浅草とか、列挙されていた
- Weather も Search
だった。出力も少し納得。
色々使ってみたいOpalです。
リンク
現時点では接続元がアメリカ国内である必要があるようです :(
Editor (mode=canvas)
City Games - Opal [Experiment]
https://opal.withgoogle.com/?flow=drive:/1xvakSeSqs_SWBSPtvoTZHuMkFEe8L9Dl&mode=app
App (mode=app)
City Games - Opal [Experiment]
https://opal.withgoogle.com/?flow=drive:/1xvakSeSqs_SWBSPtvoTZHuMkFEe8L9Dl&mode=canvas
参考
例えば天気の情報を取得するステップ
Model Input
{
"contents": [
{
"parts": [
{
"text": "Use Get Weather once to get detailed weather information for this location: Tokyo"
}
],
"role": "user"
}
],
"safetySettings": [
{
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
"threshold": "BLOCK_NONE"
},
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_NONE"
},
{
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
"threshold": "BLOCK_NONE"
}
],
"tools": [
{
"functionDeclarations": [
{
"name": "Get_Weather",
"description": "Searches weather information on Google Search.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The name of the city"
}
}
}
}
]
}
],
"toolConfig": {
"functionCallingConfig": {
"mode": "ANY"
}
},
"systemInstruction": {
"parts": [
{
"text": "\n\nToday is 07/29/2025, 02:25:43 PM\n \nYou are working as part of an AI system, so no chit-chat and no explaining what you're doing and why.\nDO NOT start with \"Okay\", or \"Alright\" or any preambles. Just the output, please."
}
],
"role": "user"
}
}
Model Response
{
"functionCall": {
"name": "Get_Weather",
"args": {
"location": "Tokyo"
}
}
}
Output
Location: Tokyo
Weather information: As of Tuesday, July 29, 2025, at 11:25 PM in Tokyo, the weather is clear with a temperature of 82°F (28°C), feeling like 84°F (29°C). The humidity is around 74%.
The forecast for today, July 29, is clear with a 10% chance of precipitation, and temperatures ranging from 79°F (26°C) to 97°F (36°C). Winds are expected to be ESE at 10 to 15 mph.
For tonight, clear skies are expected with a low of 76°F (24°C).