Java / Kotlin SDK

Abierto
#53 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, kotlin

Línea de trabajo

Start by reading the existing Python and TypeScript SDKs and the op registry that defines request and response shapes. Then map the required client behavior: identity configuration, sync and async calls, idempotency, retries, typed errors, and conditional writes. Done means a Java 17+ Gradle SDK is published to Maven Central and covers the listed v1 requirements; Spring AI and LangChain4j adapters are later work.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement help wanted up-for-grabs

We'd like a Java SDK that is also comfortable to use from Kotlin, so Loom works for JVM agent stacks: Spring AI, LangChain4j and Google's ADK for Java. Without it, JVM teams write their own HTTP wrapper around /v1/{op}, and the idempotency and retry behavior is easy to get subtly wrong.

Scope:

  • Java 17+, published to Maven Central (com.clickhouse:loom-client or similar)
  • Request/response models generated from the op registry so they stay in sync: records or immutable classes, with Jackson for JSON
  • java.net.http.HttpClient underneath to avoid a heavy dependency tree, with sync methods plus CompletableFuture variants
  • Config from a builder or from the LOOM_BASE_URL / LOOM_API_KEY env vars
  • Identity bound once on the client (org / namespace / agent, optional user and session)
  • The same behavior as the Python and TS SDKs: automatic Idempotency-Key, retries that honor Retry-After on 429/503, and typed exceptions that carry the server error code
  • if_match_sha256 on writes, for multiple concurrent writers

Later, not in v1: a Spring AI ChatMemory adapter and a LangChain4j ChatMemoryStore, so Loom drops in without changes to agent code.

Build: Gradle, with Kotlin-friendly nullability annotations.

Lenguaje dominante
Python
Estrellas
263
Forks
47
Merge medio
14 h 21 min
PR fusionados (30 d)
873

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ClickHouse/loom

Todos los issues de ClickHouse/loom

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.