Complete the installation and obtain a
Volcengine Ark API key first. This chapter covers only the minimal path to a
first run. See the component documentation for sessions, long-term memory,
knowledge bases, and tools.
Configure a model
Provide the credentials for calling the model in one of two ways. The simplest is an environment variable — only the API key is required.- Environment variable
- Config file
With the API key set, VeADK uses the default doubao model on Volcengine Ark:To use a different model, also set
MODEL_AGENT_NAME, MODEL_AGENT_PROVIDER, and MODEL_AGENT_API_BASE.Write your first agent
Createmain.py:
main.py
Agent holds the model and instruction; with no arguments it uses the default
model from config.yaml. agent.run(...) is asynchronous and returns the final
text answer.