Feat/short movie agents agent starter pack#1285
Feat/short movie agents agent starter pack#1285maeve2024 wants to merge 4 commits intogoogle:mainfrom
Conversation
Reverting: I was only supposed to approve the workflow runs, not the PR itself.
| ) | ||
| return [ | ||
| image._gcs_uri.replace("gs://", AUTHORIZED_URI) | ||
| uri.replace("gs://", AUTHORIZED_URI) |
There was a problem hiding this comment.
where is this change from? what is the uri variable? this smells like hallucination which wouldn't work
| video.video.uri.replace("gs://", AUTHORIZED_URI) | ||
| for video in operation.result.generated_videos | ||
| for video in videos | ||
| if video.video and video.video.uri |
There was a problem hiding this comment.
what is going on here?
|
|
||
| You can use the [Agent Starter Pack](https://goo.gle/agent-starter-pack) to create a production-ready version of this agent with additional deployment options: | ||
|
|
||
| If you have [`uv`](https://github.com/astral-sh/uv) installed, you can create and set up your project with a single command: |
There was a problem hiding this comment.
Why not a copy/paste from the other PRs so they all share the same heading?
https://github.com/google/adk-samples/pull/1286/changes
zeroasterisk
left a comment
There was a problem hiding this comment.
ASP Integration Checklist (ref: PR #1286 as approved template)
- ✅ ASP section added to README
- ✅ Code cleanup (
type: ignore, import fix) ⚠️ os.environ["GOOGLE_CLOUD_LOCATION"] = "global"is a hard override — should beos.environ.setdefault("GOOGLE_CLOUD_LOCATION", "global")like the other two vars. Hard assignment silently overwrites any user-configured value.⚠️ README ASP section less structured than #1286 — Missing the "From your newly created project directory, run:" follow-up withuv sync --devanduv run adk webinstructions. Match #1286's pattern.⚠️ Local dev fallback — Should follow the same<details><summary>Alternative: Local development</summary>structure as #1286.
Fix the setdefault and tighten the README to match the approved #1286 template.
zeroasterisk
left a comment
There was a problem hiding this comment.
Good progress — setdefault fixed, ASP as recommended with <details> collapse.
One thing: add the post-scaffold run instructions after the uvx command, like you did in #1286:
cd my-short-movie-agents
uv sync --dev
uv run adk run short_movie_agents
And for web UI:
uv run adk web
Small addition, then this matches the approved template.
zeroasterisk
left a comment
There was a problem hiding this comment.
The auth block (google.auth.default() + os.environ.setdefault(...)) should be in __init__.py, not in agent.py. The auth block needs to run at package import time, before any agent code references environment variables.
Please:
- Move the auth block to
__init__.py - Bump
agent-starter-packto>=0.32.0
See PR #1383 (ml-engineering) for the correct __init__.py pattern.
Signed-off-by: maeve2024 <156382087+maeve2024@users.noreply.github.com>
…cies in pyproject.toml and uv.lock; reorganize environment variable setup in agent.py.
1cc2b19 to
f67c00f
Compare
zeroasterisk
left a comment
There was a problem hiding this comment.
Changes look great, thank you! ✅
zeroasterisk
left a comment
There was a problem hiding this comment.
Changes look great, thank you! ✅
zeroasterisk
left a comment
There was a problem hiding this comment.
Changes look great, thank you! ✅
zeroasterisk
left a comment
There was a problem hiding this comment.
Changes look great, thank you! ✅
Agent Starter Pack:
pyproject.toml
README.md
Build & lint:
pyproject.toml
uv.lock
Lint/type fixes:
app/story_agent.py
app/storyboard_agent.py
app/video_agent.py
app/utils/gcs.py and app/utils/tracing.py
Testing: