File tree Expand file tree Collapse file tree 3 files changed +43
-2
lines changed
tool_human_in_the_loop_config Expand file tree Collapse file tree 3 files changed +43
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Hello World Sample Agent
2
+
3
+ This sample demonstrates a basic agent in the Agent Development Kit (ADK) that can roll dice and check if numbers are prime.
4
+
5
+ ## Overview
6
+
7
+ The Hello World sample consists of a single agent that can perform two main tasks:
8
+ - Rolling a die with a specified number of sides.
9
+ - Checking if a list of numbers contains any prime numbers.
10
+
11
+ ## Key Features
12
+
13
+ - ** ` roll_die(sides: int) ` ** : A tool that simulates rolling a die. It takes the number of sides as input and returns the result.
14
+ - ** ` check_prime(nums: list[int]) ` ** : A tool that checks for prime numbers in a given list of integers.
15
+
16
+ ## Usage
17
+
18
+ To run this agent, use the ` adk web ` command from the root of the repository:
19
+
20
+ ``` bash
21
+ adk web contributing/samples/
22
+ ```
23
+
24
+ Then, navigate to the web interface and select the "hello_world" agent.
25
+
26
+ ## Example Interactions
27
+
28
+ ** Rolling a die:**
29
+ ```
30
+ User: Roll a 20-sided die
31
+ ```
32
+
33
+ ** Checking for prime numbers:**
34
+ ```
35
+ User: Is 13 a prime number?
36
+ ```
37
+
38
+ ** Combined operation:**
39
+ ```
40
+ User: Roll a 10-sided die and tell me if the result is a prime number.
41
+ ```
Original file line number Diff line number Diff line change 1
1
# Config-based Agent Sample - LLM multi-agent
2
2
3
- http://google3/third_party/py/google/adk/open_source_workspace/contributing/samples/ hello_world_ma/
3
+ This sample is based on the [ Hello World Multi-Agent sample ] ( ../ hello_world_ma/) .
Original file line number Diff line number Diff line change 1
1
# Config-based Agent Sample - Human-In-The-Loop
2
2
3
- http://google3/third_party/py/google/adk/open_source_workspace/contributing/samples/ human_in_loop/
3
+ This sample is based on the [ Human-In-The-Loop sample ] ( ../ human_in_loop/) .
You can’t perform that action at this time.
0 commit comments