We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 216cb7a commit 1c3e60dCopy full SHA for 1c3e60d
contributing/samples/hello_world/agent.py
@@ -17,7 +17,7 @@
17
from google.adk import Agent
18
from google.adk.tools.tool_context import ToolContext
19
from google.genai import types
20
-
+from google.adk.apps import App
21
22
def roll_die(sides: int, tool_context: ToolContext) -> int:
23
"""Roll a die and return the rolled result.
@@ -106,3 +106,12 @@ async def check_prime(nums: list[int]) -> str:
106
]
107
),
108
)
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