Skip to main content

Quickstart

Welcome to the Arc AI Agents framework!

The Arc Framework is designed to help you build powerful AI Agents quickly and easily.

This is a simple example of an Arc Agent that uses the OpenAI API.

fun main(): Unit = runBlocking {
// Set the OpenAI API as a System property or environment variable.
// System.setProperty("OPENAI_API_KEY", "****")

agents {
agent {
name = "MyAgent"
model { "gpt-4o" }
prompt {
"""
Add your prompt here.
"""
}
}
}.serve(devMode = true)
}

Simply add the following dependencies to your build.gradle.kts file:

implementation("org.eclipse.lmos:arc-agents:$arcVersion")
implementation("org.eclipse.lmos:arc-server:$arcVersion")
implementation("org.eclipse.lmos:arc-azure-client:$arcVersion")

For a more comprehensive setup please check out the following projects:

NameDescriptionLocation
ExamplesA collection of examples showing common use cases and how to quickly get started with Arc Agents.https://github.com/eclipse-lmos/arc/tree/main/examples
Spring Boot Setup ProjectA template Spring Boot project that can be used to quickly create Arc Agents running in a Spring Boot application.https://github.com/eclipse-lmos/arc-spring-init
Other useful sections are: