Skip to content

Add Agent Starter Pack to Story Teller Sample Agent. #1174

Open
maeve2024 wants to merge 1 commit intogoogle:mainfrom
tristanhussain:feat/story_teller-starter-pack-clean
Open

Add Agent Starter Pack to Story Teller Sample Agent. #1174
maeve2024 wants to merge 1 commit intogoogle:mainfrom
tristanhussain:feat/story_teller-starter-pack-clean

Conversation

@maeve2024
Copy link

Integrate the Story Teller agent with the Agent Starter Pack and standardize
on uv for dependency management, following the pattern from adk-samples PR 351.

pyproject.toml:

  • Add google-auth to dependencies for flexible authentication.
  • Add agent-starter-pack to dev dependency group.
  • Add [project.optional-dependencies] lint group with ruff.
  • Add [tool.agent-starter-pack] with example_question and
    agent_directory (story_teller_agent) for remote templating.

story_teller_agent/init.py:

  • Add flexible authentication block: set GOOGLE_CLOUD_PROJECT,
    GOOGLE_CLOUD_LOCATION, and GOOGLE_GENAI_USE_VERTEXAI from
    google.auth.default() so the agent works with ADC locally and
    when deployed (e.g. Vertex AI / Cloud Run).
  • Keep package entry point via "from . import agent".

README.md:

  • Switch setup from Poetry to uv (prerequisites, uv sync, config).
  • Add Agent Setup section with clone, uv sync, and env var notes.
  • Make "Deploying the Agent Remotely" the main deployment path,
    with Agent Starter Pack (uvx first, pip in details) as primary.
  • Add Development section (uv sync --dev, uv run pytest tests).
  • Align structure and tone with auto-insurance-agent README.

Lockfile:

  • Add uv.lock under python/agents/story_teller for reproducible installs.

TESTS:
image
image

…etup

Integrate the Story Teller agent with the Agent Starter Pack and standardize
on uv for dependency management, following the pattern from adk-samples PR 351.

pyproject.toml: add google-auth, agent-starter-pack dev dep, [tool.agent-starter-pack].
story_teller_agent/__init__.py: add flexible auth block for ADC/Vertex.
README.md: uv setup, Agent Starter Pack as main deployment path.
Add uv.lock for reproducible installs.

Made-with: Cursor
@@ -0,0 +1,26 @@
# Copyright 2025 Google LLC
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2026

dependencies = [
"google-adk>=1.0.0",
"google-genai>=1.9.0",
"google-auth>=2.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please test without this dep and see if it works.

1. To run the agent from the CLI:

```bash
adk run .
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be make playground after Agent Starter Pack

Copy link
Collaborator

@zeroasterisk zeroasterisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update readme to be end-to-end ASP on top, and end-to-end alternative inside collapsed div.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants