Skip to content

Installation ​

kotlin
dependencies {
    // The graph builder and the engine. This is all the quick start needs.
    implementation("dev.deeptelar:telar-core:0.1.0-alpha19")

    // Optional modules. Add only the ones you use.
    implementation("dev.deeptelar:telar-serialization:0.1.0-alpha19")      // save @Serializable states
    implementation("dev.deeptelar:telar-checkpoint-file:0.1.0-alpha19")    // save runs as JSON files
    implementation("dev.deeptelar:telar-checkpoint-browser:0.1.0-alpha19") // save runs in a browser's localStorage (JS and Wasm)
    implementation("dev.deeptelar:telar-checkpoint-sqldelight:0.1.0-alpha19") // save runs in SQLite through SQLDelight, on every platform
    implementation("dev.deeptelar:telar-checkpoint-postgres:0.1.0-alpha19") // save runs in PostgreSQL, for servers (JVM)
    implementation("dev.deeptelar:telar-agent:0.1.0-alpha19")              // chat models, tools and the tool-calling agent
    implementation("dev.deeptelar:telar-anthropic:0.1.0-alpha19")          // call Claude, on every platform
    implementation("dev.deeptelar:telar-openai:0.1.0-alpha19")             // call OpenAI, Ollama and compatible servers, on every platform
    implementation("dev.deeptelar:telar-langchain4j:0.1.0-alpha19")        // call AI models through LangChain4j (JVM)
    implementation("dev.deeptelar:telar-typesafe:0.1.0-alpha19")           // ask Jev, a decision model, on every platform
    implementation("dev.deeptelar:telar-mcp:0.1.0-alpha19")                // the tools of an MCP server as tools of an agent
    implementation("dev.deeptelar:telar-otel:0.1.0-alpha19")               // send runs to OpenTelemetry, on every platform
    testImplementation("dev.deeptelar:telar-test:0.1.0-alpha19")           // scripted models and checks for the tests of a graph
}

One version for every module ​

telar-bom names the version of every module of Telar, so an app writes it once and cannot mix versions:

kotlin
dependencies {
    implementation(platform("dev.deeptelar:telar-bom:0.1.0-alpha19"))
    implementation("dev.deeptelar:telar-core")
    implementation("dev.deeptelar:telar-agent")
    implementation("dev.deeptelar:telar-anthropic")
    testImplementation("dev.deeptelar:telar-test")
}

In a Kotlin Multiplatform project, the dependencies of a source set have no platform. Use the one of the project:

kotlin
kotlin {
    sourceSets {
        commonMain.dependencies {
            implementation(project.dependencies.platform("dev.deeptelar:telar-bom:0.1.0-alpha19"))
            implementation("dev.deeptelar:telar-core")
            implementation("dev.deeptelar:telar-agent")
        }
    }
}

The BOM then holds for every target of the project.

It also names the artifact of each platform, such as telar-core-jvm, so a Maven build can import it in <dependencyManagement> with <scope>import</scope> and leave the versions out too.

Until 0.1.0-alpha05 the project was called langgraph-kt, and its artifacts were io.github.cuento3yllevo2:langgraph-kt-*. The changelog says how to update.

ModuleTargetsPurpose
telar-coreJVM/Android, iOS, macOS, Linux, Windows, JS, WasmGraph builder, execution engine, checkpointing interfaces
telar-serializationsame as coreKotlinxStateSerializer for @Serializable states, CheckpointCodec for custom checkpointers
telar-checkpoint-filesame as core (Node.js only for JS/Wasm)FileCheckpointer, one JSON file per thread, and FileStore
telar-checkpoint-browserJS and Wasm in a browserLocalStorageCheckpointer, runs that survive a page reload, and LocalStorageStore
telar-checkpoint-sqldelightsame as coreSqlDelightCheckpointer: runs in a SQLite database through SQLDelight, on Android, iOS, desktop, servers and the browser (in memory there), and SqlDelightStore
telar-checkpoint-postgresJVMPostgresCheckpointer and PostgresStore: runs and memories in PostgreSQL, shared by the instances of a server, through the app's JDBC DataSource
telar-agentsame as coreChatModel, Tool, and the tool-calling agent: toolAgent / toolLoop; memoryTools, EmbeddingModel and SemanticStore
telar-anthropicsame as coreAnthropicChatModel, Claude through Ktor
telar-openaisame as coreOpenAiChatModel: OpenAI, Ollama and other servers with the Chat Completions API, through Ktor; OpenAiEmbeddingModel for their embeddings
telar-langchain4jJVM (Java 17+)LangChain4jChatModel and chatNode / chatMessagesNode for LangChain4j 1.x models
telar-typesafesame as coreTypeSafeDecisionModel: Jev, the decision model of TypeSafe AI, through Ktor
telar-mcpsame as coremcpTools: the tools of a Model Context Protocol server as tools of an agent, on the Kotlin SDK of MCP.
telar-otelsame as coreOtlpObserver: the runs and nodes of a graph as OpenTelemetry traces, sent over HTTP with Ktor on every platform. On the JVM also OpenTelemetryObserver, for the OpenTelemetry SDK of Java.
telar-bomnone: a bill of materialsThe version of every module above, for platform(...)
telar-testsame as coreScriptedChatModel, ScriptedDecisionModel, record(), and graph.test { } / graph.replay { } for the path of a run, for tests of a graph.

Telar is built with Kotlin 2.4. On the JVM, Kotlin 2.3 also works, verified with 2.3.21 for telar-core in 0.1.0-alpha19. For Native, JS and Wasm, use the Kotlin version used to build the release. JVM artifacts target Java 11, except telar-langchain4j, which needs Java 17 because LangChain4j does.

See Supported versions and releases for the compiler, runtime and release rules.

Status ​

Alpha. 0.1.0-alpha19 is the latest release, and it is on Maven Central. The API may still change before 1.0; the changelog lists what changes in each version, and the roadmap lists what is planned.

Released under the Apache License 2.0.