Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# --8<-- [start:init]
# Part of agent.py --> Follow https://google.github.io/adk-docs/get-started/quickstart/ to learn the setup

import asyncio
import os
from google.adk.agents.sequential_agent import SequentialAgent
from google.adk.agents.llm_agent import LlmAgent
from google.genai import types
# Change 1: Import InMemoryRunner instead of Runner/InMemorySessionService
from google.adk.runners import InMemoryRunner
from typing import Optional # For type hints

Expand All @@ -27,10 +29,6 @@
SESSION_ID = "pipeline_session_02" # Use a unique session ID for each run if desired
GEMINI_MODEL = "gemini-2.0-flash"


# --8<-- [start:init]
# Part of agent.py --> Follow https://google.github.io/adk-docs/get-started/quickstart/ to learn the setup

# --- 1. Define Sub-Agents for Each Pipeline Stage ---

# Code Writer Agent
Expand Down Expand Up @@ -197,4 +195,4 @@
# await call_code_pipeline(query, user_id=USER_ID, session_id=SESSION_ID)

# # In a standalone Python script or if await is not supported/failing:
# # asyncio.run(call_code_pipeline(query, user_id=USER_ID, session_id=SESSION_ID))
# # asyncio.run(call_code_pipeline(query, user_id=USER_ID, session_id=SESSION_ID))