Welcome to veadk-java! This toolkit helps you create intelligent agents using the robust features of Volcengine. Whether you are a beginner or just want a straightforward solution, you are in the right place.
To get started, you’ll need to download the toolkit. Click the button below for a seamless download experience.
Visit this page to download the latest version: GitHub Releases.
Make sure your system meets the following requirements before running the toolkit:
Once you have downloaded the toolkit, you will need to set it up in your development environment.
Add the Dependency: Integrate the toolkit into your project by adding the following lines to your pom.xml file:
<dependency>
<groupId>com.volcengine.veadk</groupId>
<artifactId>veadk-java</artifactId>
<version>0.0.1</version>
</dependency>
Initialize Your Agent: Use the toolkit to create your own intelligent agent. Below is an example of a basic agent that can interact with users.
public class QuickstartAgentExample {
public static void main(String[] args) {
// Use an Ark model (replace with a model name available in your Ark Console)
BaseAgent agent = LlmAgent.builder()
.name("quickstart-agent")
.instruction("You are a helpful assistant.")
.model(new ArkLlm("doubao-seed-1-8-preview-251115"))
.build();
Runner runner = new Runner(agent);
Session session = runner.sessionService()
.createSession(runner.appName(), "userId", null, "sessionId")
.blockingGet();
// Build a simple conversation
Content userMsg = Content.fromParts(Part.fromText("hello!"));
// Further interaction can be added here.
}
}
The veadk-java toolkit offers several useful features for creating agents:
For more detailed instructions and advanced features, refer to the official documentation. It can guide you through various functionalities, class details, and examples to enhance your agent’s capabilities.
If you encounter issues while using veadk-java, consider the following solutions:
If problems persist, feel free to reach out for support or consult community forums for help.
Join discussions and get help from fellow developers by participating in online forums. Engaging with others can provide insights and solutions to enhance your experience with veadk-java.
For more information, visit our community page or reach out through our contact options on GitHub.
Don’t forget to download veadk-java here: GitHub Releases. Enjoy building your intelligent agents effortlessly!