Skip to content

Commit 1c3e60d

Browse files
hangfeicopybara-github
authored andcommitted
ADK changes
PiperOrigin-RevId: 799760971
1 parent 216cb7a commit 1c3e60d

File tree

1 file changed

+10
-1
lines changed
  • contributing/samples/hello_world

1 file changed

+10
-1
lines changed

contributing/samples/hello_world/agent.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from google.adk import Agent
1818
from google.adk.tools.tool_context import ToolContext
1919
from google.genai import types
20-
20+
from google.adk.apps import App
2121

2222
def roll_die(sides: int, tool_context: ToolContext) -> int:
2323
"""Roll a die and return the rolled result.
@@ -106,3 +106,12 @@ async def check_prime(nums: list[int]) -> str:
106106
]
107107
),
108108
)
109+
110+
# The name "app" need to be exactly the same so ADK app loader can locate it and load it.
111+
app = App(
112+
name='hello_world_app',
113+
root_agent=root_agent,
114+
plugins=[
115+
SamplePlugin(),
116+
],
117+
)

0 commit comments

Comments
 (0)