Skip to content

Commit 3615b19

Browse files
fix: fix agentic_generative_ui example in ADK dojo
1 parent 137e58a commit 3615b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/adk-middleware/python/examples/server/api/agentic_generative_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from textwrap import dedent
6-
from typing import Any, Literal
6+
from typing import Any, Literal, Optional
77

88
from fastapi import FastAPI
99
from pydantic import BaseModel, Field
@@ -68,7 +68,7 @@ async def create_plan(steps: list[str]) -> StateSnapshotEvent:
6868

6969

7070
async def update_plan_step(
71-
index: int, description: str | None = None, status: StepStatus | None = None
71+
index: int, description: Optional[str] = None, status: Optional[StepStatus] = None
7272
) -> StateDeltaEvent:
7373
"""Update the plan with new steps or changes.
7474

0 commit comments

Comments
 (0)