diff --git a/examples/python/snippets/agents/workflow-agents/sequential_agent_code_development_agent.py b/examples/python/snippets/agents/workflow-agents/sequential_agent_code_development_agent.py index b73bdf404..590257f9d 100644 --- a/examples/python/snippets/agents/workflow-agents/sequential_agent_code_development_agent.py +++ b/examples/python/snippets/agents/workflow-agents/sequential_agent_code_development_agent.py @@ -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 @@ -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 @@ -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)) \ No newline at end of file +# # asyncio.run(call_code_pipeline(query, user_id=USER_ID, session_id=SESSION_ID))