A hands-on tour of VeADK, from the smallest possible agent to a multi-agent
workflow. Each folder is self-contained: a single main.py, an .env.example,
and a bilingual README (English + 中文).
中文版见 README.zh.md
There is also a2ui_agent/ — a demo of agent-driven UI, run with
veadk frontend --agents-dir examples.
For a deployable full app (web UI + agent API in one container, shipped to
Volcengine AgentKit via veadk agentkit), see basic-app/.
The examples are grouped by concept: 01–02 basics, 03 & 09 memory, 04–05 tools & knowledge, 06 & 10 multi-agent, 07–08 model behavior, 11 observability.
-
Install VeADK (examples 05 needs the
extensionsextra):pip install veadk-python # for the RAG example: pip install "veadk-python[extensions]"
-
In each example folder, copy the env template and add your keys:
cd 01_quickstart cp .env.example .envVeADK auto-loads
.envfrom the current working directory. You can also use aconfig.yamlinstead — see the configuration docs. -
Run:
python main.py
Agent— model + instruction + tools + memory/knowledge. Created once, reads model config from the environment.Runner— drives a conversation;await runner.run(messages=..., session_id=...)returns the final text answer.- Tools — any Python function with type hints and a docstring; built-ins live
under
veadk.tools.builtin_tools. - Memory — short-term (conversation context, keyed by
session_id) and long-term (across sessions). - KnowledgeBase — RAG over your documents; auto-adds a retrieval tool.
- Workflow agents —
SequentialAgent,ParallelAgent,LoopAgentto orchestrate multiple agents.
- Docs: https://volcengine.github.io/veadk-python/
- Tutorial notebook:
veadk_tutorial.ipynb
