Skip to content

Commit a583b64

Browse files
Move Visual Builder page under Runtime > Web Interface page (ADK Web) (#1759)
* Move adk web Visual Builder page content into Runtime > adk web page * Clarify Visual Builder in intro * Fix casing for consistency * More casing fixes * Move Visual Builder page under Web Interface * Fix link from runtime index page * Keep Visual Builder file at original path, nest under Web Interface in nav --------- Co-authored-by: Joe Fernandez <joefernandez@users.noreply.github.com>
1 parent 50f7df7 commit a583b64

4 files changed

Lines changed: 63 additions & 59 deletions

File tree

docs/runtime/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the method that best fits your development workflow.
1818
Use `adk web` to launch a browser-based interface for interacting with your
1919
agents.
2020

21-
[:octicons-arrow-right-24: Use the Web Interface](web-interface.md)
21+
[:octicons-arrow-right-24: Use the Web Interface](web-interface/index.md)
2222

2323
- :material-console:{ .lg .middle } **Command Line**
2424

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,27 @@
77
The ADK web interface lets you test your agents directly in the browser. This
88
tool provides a simple way to interactively develop and debug your agents.
99

10-
![ADK Web Interface](../assets/adk-web-dev-ui-chat.png)
10+
![ADK Web Interface](../../assets/adk-web-dev-ui-chat.png)
1111

1212
!!! warning "Caution: ADK Web for development only"
1313

14-
ADK Web is ***not meant for use in production deployments***. You should
15-
use ADK Web for development and debugging purposes only.
14+
ADK Web is ***not meant for use in production deployments***. You should use
15+
ADK Web for development and debugging purposes only.
16+
17+
Key features of the ADK web interface include:
18+
19+
- **Chat interface**: Send messages to your agents and view responses in
20+
real-time
21+
- **Session management**: Create and switch between sessions
22+
- **State inspection**: View and modify session state during development
23+
- **Event history**: Inspect all events generated during agent execution
24+
- **Visual Builder**: Design agents visually with a drag-and-drop workflow
25+
editor and an AI-powered assistant (Python only, [learn
26+
more](/visual-builder/))
1627

1728
## Start the web interface
1829

19-
Use the following command to run your agent in the ADK web interface:
30+
Use the following command to start the ADK web interface:
2031

2132
=== "Python"
2233

@@ -43,7 +54,7 @@ Use the following command to run your agent in the ADK web interface:
4354
With Maven, compile and run the ADK web server:
4455
```console
4556
mvn compile exec:java \
46-
-Dexec.args="--adk.agents.source-dir=src/main/java/agents --server.port=8080"
57+
-Dexec.args="--adk.agents.source-dir=src/main/java/agents --server.port=8000"
4758
```
4859
=== "Gradle"
4960
With Gradle, the `build.gradle` or `build.gradle.kts` build file should have the following Java plugin in its plugins section:
@@ -61,7 +72,7 @@ Use the following command to run your agent in the ADK web interface:
6172
dependsOn classes
6273
classpath = sourceSets.main.runtimeClasspath
6374
mainClass = 'com.google.adk.web.AdkWebServer'
64-
args '--adk.agents.source-dir=src/main/java/agents', '--server.port=8080'
75+
args '--adk.agents.source-dir=src/main/java/agents', '--server.port=8000'
6576
}
6677
```
6778

@@ -71,9 +82,10 @@ Use the following command to run your agent in the ADK web interface:
7182
```
7283

7384

74-
In Java, the Web Interface and the API server are bundled together.
85+
In Java, the web interface and the API server are bundled together.
7586

76-
The server starts on `http://localhost:8000` by default:
87+
Once started, the server prints the access URL to the console. Open it in your
88+
browser to use the web interface:
7789

7890
```shell
7991
+-----------------------------------------------------------------------------+
@@ -83,17 +95,11 @@ The server starts on `http://localhost:8000` by default:
8395
+-----------------------------------------------------------------------------+
8496
```
8597

86-
## Features
87-
88-
Key features of the ADK web interface include:
89-
90-
- **Chat interface**: Send messages to your agents and view responses in real-time
91-
- **Session management**: Create and switch between sessions
92-
- **State inspection**: View and modify session state during development
93-
- **Event history**: Inspect all events generated during agent execution
94-
9598
## Common options
9699

100+
Here are some commonly used options for the `adk web` command. Run `adk web
101+
--help` to see all available options.
102+
97103
| Option | Description | Default |
98104
|--------|-------------|---------|
99105
| `--port` | Port to run the server on | `8000` |
@@ -102,7 +108,7 @@ Key features of the ADK web interface include:
102108
| `--artifact_service_uri` | Custom artifact storage URI | Local `.adk/artifacts` |
103109
| `--reload/--no-reload` | Enable auto-reload on code changes | `true` |
104110

105-
### Example with options
111+
For example:
106112

107113
```shell
108114
adk web --port 3000 --session_service_uri "sqlite:///sessions.db"

docs/visual-builder/index.md

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
1-
# Visual Builder for agents
1+
# Use the Visual Builder
22

33
<div class="language-support-tag">
44
<span class="lst-supported">Supported in ADK</span><span class="lst-python">Python v1.18.0</span><span class="lst-preview">Experimental</span>
55
</div>
66

7-
The ADK Visual Builder is a web-based tool that provides a visual workflow
8-
design environment for creating and managing ADK agents. It allows you to
9-
design, build, and test your agents in a beginner-friendly graphical interface,
10-
and includes an AI-powered assistant to help you build agents.
7+
The ADK Visual Builder is a feature of the ADK web interface that provides a
8+
visual workflow design environment for creating and managing agents. The Visual
9+
Builder allows you to design, build, and test agents in a beginner-friendly
10+
graphical interface, and includes an AI-powered assistant to help you build
11+
agents.
1112

1213
![Visual Agent Builder](../assets/visual-builder.png)
1314

1415
!!! example "Experimental"
16+
1517
The Visual Builder feature is an experimental release. We welcome your
1618
[feedback](https://github.com/google/adk-python/issues/new?template=feature_request.md)!
1719

18-
## Get started
20+
## Create an agent
1921

20-
The Visual Builder interface is part of the ADK Web tool user interface.
21-
Make sure you have ADK library
22-
[installed](/get-started/installation/#python)
23-
and then run the ADK Web user interface.
22+
To use the Visual Builder, start the ADK web interface:
2423

2524
```console
26-
adk web --port 8000
25+
adk web
2726
```
2827

28+
Then follow the steps below to create an agent.
29+
2930
??? tip "Tip: Run from a code development directory"
3031

3132
The Visual Builder tool writes project files to new subdirectories located
32-
in the directory where you run the ADK Web tool. Make sure you run this
33+
in the directory where you run ADK Web. Make sure you run this
3334
command from a developer directory location where you have write access.
3435

3536
![Visual Agent Builder start](../assets/visual-builder-start.png)
@@ -41,13 +42,13 @@ To create an agent with Visual Builder:
4142
1. Type a name for your agent application and select **Create**.
4243
1. Edit your agent by doing any of the following:
4344
* In the left panel, edit agent component values.
44-
* In the central panel, add new agent components .
45+
* In the central panel, add new agent components.
4546
* In the right panel, use prompts to modify the agent or get help.
4647
1. In bottom left corner, select **Save** to save your agent.
4748
1. Interact with your new agent to test it.
4849
1. In top left of the page, select the pencil icon, as shown in *Figure 1*, to continue editing your agent.
4950

50-
Here are few things to note when using Visual Builder:
51+
Here are a few things to note when using Visual Builder:
5152

5253
* **Create agent and save:** When creating an agent, make sure you select
5354
**Save** before exiting the editing interface, otherwise your new agent may
@@ -57,11 +58,19 @@ Here are few things to note when using Visual Builder:
5758
* **Add tools:** When adding existing custom Tools to a Visual Builder
5859
agent, specify a fully-qualified Python function name.
5960

60-
## Workflow component support
61+
??? tip "Try this prompt with the Visual Builder assistant"
62+
63+
```none
64+
Help me add a dice roll tool to my current agent.
65+
Use the default model if you need to configure that.
66+
```
6167

62-
The Visual Builder tool provides a drag-and-drop user interface for constructing agents, as
63-
well as an AI-powered development Assistant that can answer questions and edit your agent workflow.
64-
The tool supports all the essential components for building an ADK agent workflow, including:
68+
## Supported components
69+
70+
The Visual Builder tool provides a drag-and-drop user interface for constructing
71+
agents, as well as an AI-powered development Assistant that can answer questions
72+
and edit your agent workflow. The tool supports all the essential components for
73+
building an ADK agent workflow, including:
6574

6675
* **Agents**
6776
* **Root Agent**: The primary controlling agent for a workflow. All other agents in
@@ -85,15 +94,15 @@ The tool supports all the essential components for building an ADK agent workflo
8594
and end of agent workflow events.
8695

8796
Some advanced ADK features are not supported by Visual Builder due to
88-
limitations of the Agent Config feature. For more information, see the
89-
Agent Config [Known limitations](/agents/config/#known-limitations).
97+
limitations of the Agent Config feature. For more information, see the Agent
98+
Config [Known limitations](/agents/config/#known-limitations).
9099

91-
## Project code output
100+
## Generated project structure
92101

93102
The Visual Builder tool generates code in the [Agent Config](/agents/config/)
94103
format, using `.yaml` configuration files for agents and Python code for custom
95104
tools. These files are generated in a subfolder of the directory where you ran
96-
the ADK Web interface. The following listing shows an example layout for a
105+
the ADK web interface. The following listing shows an example layout for a
97106
DiceAgent project:
98107

99108
```none
@@ -110,18 +119,6 @@ DiceAgent/
110119
You can edit the generated files in your development environment. However,
111120
some changes may not be compatible with Visual Builder.
112121

113-
## Next steps
114-
115-
Using the Visual Builder development Assistant, try building a new agent using
116-
this prompt:
117-
118-
```none
119-
Help me add a dice roll tool to my current agent.
120-
Use the default model if you need to configure that.
121-
```
122-
123-
Check out more information on the Agent Config code format used by Visual Builder
124-
and the available options:
125-
126-
* [Agent Config](/agents/config/)
127-
* [Agent Config YAML schema](/api-reference/agentconfig/)
122+
For more information on the Agent Config code format used by Visual Builder, see
123+
[Agent Config](/agents/config/) and [Agent Config YAML
124+
schema](/api-reference/agentconfig/).

mkdocs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ plugins:
221221
Build Agents:
222222
- get-started/*.md
223223
- tutorials/*.md
224-
- visual-builder/*.md
225224
- agents/*.md
226225
- workflows/*.md
227226
- integrations/*.md
@@ -230,6 +229,7 @@ plugins:
230229
- skills/*.md
231230
Run Agents:
232231
- runtime/*.md
232+
- visual-builder/*.md
233233
- deploy/*.md
234234
- observability/*.md
235235
- evaluate/*.md
@@ -271,7 +271,6 @@ nav:
271271
- get-started/streaming/index.md
272272
- Python: get-started/streaming/quickstart-streaming.md
273273
- Java: get-started/streaming/quickstart-streaming-java.md
274-
- Visual Builder: visual-builder/index.md
275274
- Coding with AI: tutorials/coding-with-ai.md
276275
- Advanced setup: get-started/installation.md
277276
- Agents:
@@ -315,7 +314,9 @@ nav:
315314
- Run Agents:
316315
- Agent Runtime:
317316
- Agent Runtime: runtime/index.md
318-
- Web Interface: runtime/web-interface.md
317+
- Web Interface:
318+
- runtime/web-interface/index.md
319+
- Visual Builder: visual-builder/index.md
319320
- Command Line: runtime/command-line.md
320321
- API Server: runtime/api-server.md
321322
- Ambient Agents: runtime/ambient-agents.md

0 commit comments

Comments
 (0)