0.0.2 uses the public Maven coordinates com.volcengine.veadk:veadk-java:0.0.2.
Prerequisites
- JDK 17 or later.
- Maven 3.8 or later, or the
./mvnwwrapper included in the source repository. - A model and API Key are required when you call a model. Adding the Maven dependency itself does not require model credentials.
Add the Maven Dependency
Add the dependency to your projectpom.xml:
core and example modules. The current version in the root pom.xml is 0.0.2.
Configure Model Credentials
The shortest path is to provide the Volcengine Ark API Key through an environment variable:Agent.builder() auto-creates a model adapter, model credentials are resolved in this order:
Ark OpenAPI fallback also requires:
Verify from Source
In the source repository root, run:example/target contains the compiled artifacts needed by examples. To run examples, configure MODEL_AGENT_API_KEY or other credentials in the same terminal first.