Skip to content

Commit 439f073

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Fix links in sample READMEs
Updated README files for the human_in_loop and multi_agent_llm_config samples to use relative markdown links. PiperOrigin-RevId: 798177903
1 parent 395a50b commit 439f073

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Config-based Agent Sample - LLM multi-agent
22

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/).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Config-based Agent Sample - Human-In-The-Loop
22

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/).

0 commit comments

Comments
 (0)