You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTRUCTIONS.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,15 @@ In this step, you’ll create your first AI Agent with ADK. At this stage, the a
21
21
22
22
1. Open the file `mongodb-groceries-agent/agent.py`.
23
23
24
-
2. You’ll see a few Python imports. You’ll use these later to implement the tools. Add the following code after the imports:
24
+
1. You’ll see a few Python imports. You’ll use these later to implement the tools. You'll also see a placeholder for a passkey:
25
+
26
+
```
27
+
PASSKEY = "<ASK YOUR INSTRUCTOR FOR THE PASSKEY>"
28
+
```
29
+
30
+
Ask your instructor for the passkey and replace the placeholder with it. This passkey authenticates you to the Google API for this workshop, so you don’t need to provide your own API key—we’ve created one for you.
31
+
32
+
1. With the API key in place, you’re ready to create your first agent. Add the following code to the file:
25
33
26
34
```python
27
35
root_agent = Agent(
@@ -41,7 +49,7 @@ In this step, you’ll create your first AI Agent with ADK. At this stage, the a
41
49
* **instruction** → A system message that defines how the agent should behave (you’ll fill this in later).
42
50
* **tools** → Python functions that the agent can call (currently empty).
43
51
44
-
3. Run the following command in the terminal to start the ADK development UI:
52
+
1. Run the following command in the terminal to start the ADK development UI:
45
53
46
54
```
47
55
adk web
@@ -53,11 +61,11 @@ In this step, you’ll create your first AI Agent with ADK. At this stage, the a
53
61
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
54
62
```
55
63
56
-
4. Hold CMD (Mac) or CTRL (Windows/Linux) and click on the link: http://127.0.0.1:8000.
64
+
1. Hold CMD (Mac) or CTRL (Windows/Linux) and click on the link: http://127.0.0.1:8000.
57
65
58
66
This opens the development UI where you can chat with your agent.
0 commit comments