1a390b2815
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
/ test (push) Failing after 0s
secretlint / Run secretlint to diff files (push) Failing after 1s
UI-TARS E2E Test / E2E (macos-13) (push) Has been cancelled
UI-TARS E2E Test / E2E (macos-latest) (push) Has been cancelled
UI-TARS E2E Test / E2E (windows-latest) (push) Has been cancelled
CI Test, Typecheck / Test & Typecheck (push) Has been cancelled
GUI Agent 2.0 – Minimal Demo
A minimal, runnable demo showing how to use GUI Agent SDK 2.0 with the AIO Hybrid Operator and a Doubao model to perform a simple task.
What it does
- Initializes
GUIAgentwithAIOHybridOperatorand a Doubao model - Sends a single request: "Check the weather in Shanghai"
- Prints the agent's response to the console
Prerequisites
- Node.js 18+, pnpm or npm
- Valid credentials for Volcengine Ark (API key, base URL) and a Doubao model ID
- A running AIO sandbox service base URL
Project structure
- src/index.ts: Entry point, sets up agent and runs the demo
- src/constants.ts: System prompt for the agent
- package.json: Scripts to build/run the demo
- .env.local: Environment variables (not committed)
How to use
- Create an
.env.localfile in this folder with the following keys:
ARK_BASE_URL=https://your-ark-base-url
ARK_API_KEY=your-ark-api-key
DOUBAO_SEED_1_6=your-doubao-model-id
SANDBOX_URL=http://your-aio-sandbox-url
- Install dependencies:
pnpm install
# or
npm install
- Run
- Development (TypeScript, using tsx):
pnpm dev
- Build and run:
pnpm build
pnpm start
- Expected output
You should see logs similar to:
📦 Testing AIO Operator...
📝 Agent with AIO Operator Response:
================================================
<agent response content>
================================================