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
{{ message }}
Repository navigation
Commit 681d6a4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/content/docs/framework/frontend/web-ui.en.mdx
+49-1Lines changed: 49 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,16 @@ description: "A bundled React UI that renders agent-streamed A2UI, served alongs
5
5
6
6
VeADK ships a React frontend that renders [A2UI](/en/docs/framework/frontend/a2ui) (agent-driven UI) streamed from an agent over the Google ADK API server. It talks to the same server process that `veadk frontend` launches, so there is **no separate backend to deploy**.
7
7
8
+
## What it can do
9
+
10
+
-**Chat**: multi-turn conversations that render streamed A2UI cards, plus thinking, tool calls, token usage and timing.
11
+
-**Agent picker**: switch agents from the top-left; hover an agent to see its model and mounted tools.
12
+
-**Session history**: auto-saved, time-sorted, reopen or delete.
13
+
-**Smart search**: the *Session* source full-text-searches the current agent's history; the *Web* source calls the agent's mounted web-search tool live (using credentials from the server's environment variables).
14
+
-**Add an AgentKit agent**: paste a URL + API key to connect a remote agent over the ADK protocol; it then appears in the picker.
15
+
-**Tracing**: view the call flame graph for the current session.
16
+
-**Login**: SSO (VeIdentity / GitHub / Google / any OIDC) or a local username.
17
+
8
18
## Run
9
19
10
20
Build the UI once, then serve the UI and the agent API together with a single command:
@@ -39,7 +49,8 @@ cd frontend && npm run dev # http://localhost:5173 (proxies A
39
49
|`--oauth2-user-pool` / `--oauth2-user-pool-client`| — | VeIdentity user pool / client **name**. Enables SSO when set. |
40
50
|`--oauth2-user-pool-uid` / `--oauth2-user-pool-client-uid`| env `OAUTH2_USER_POOL_ID` / `OAUTH2_USER_POOL_CLIENT_ID`| Specify the pool / client by **UID** instead of name. |
41
51
|`--oauth2-provider` / `--oauth2-provider-label`|`veidentity`| Login button provider id and display label. |
|`--oauth2-redirect-uri`|`http://{host}:{port}/oauth2/callback`| OAuth2 callback URL (env `OAUTH2_REDIRECT_URI`). Set this when deploying behind a public host / runtime. |
53
+
| Third-party / custom provider | see below | Connect GitHub / Google / any OIDC via env vars; see the Authentication section. |
43
54
44
55
<Callouttype="info">
45
56
Outside dev mode, if the built frontend directory is not found, the command fails and asks you to run `npm run build` first (or use `--dev` with the Vite dev server).
@@ -66,6 +77,43 @@ protects the API while exempting the SPA shell and `GET /web/auth-config`, so th
66
77
app loads and shows its own login page instead of being bounced to the IdP. The
67
78
login button's label/icon is config-driven (`--oauth2-provider` / `-label`).
68
79
80
+
**Third-party / custom OAuth2 (env vars)** — without a VeIdentity user pool, set
81
+
`OAUTH2_CLIENT_ID` (and secret) to enable GitHub, Google, or any OAuth2/OIDC
82
+
login. Endpoints are resolved in this order: a built-in preset
|`OAUTH2_PROVIDER_LABEL`| Override the login button text. |
94
+
|`OAUTH2_REDIRECT_URI`|**Callback URL.** Set this when deploying behind a public host / runtime, and register the same value in your OAuth app; defaults to `http://{host}:{port}/oauth2/callback` locally. |
VeADK 自带一个 React 前端,用于渲染智能体经由 Google ADK API Server 流式返回的 [A2UI](/cn/docs/framework/frontend/a2ui)(智能体驱动 UI)。它与 `veadk frontend` 启动的是同一个服务进程,因此**无需单独部署后端**。
0 commit comments