Java / Kotlin SDK

オープン
#53 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, kotlin

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
263
フォーク
47
平均マージ
14時間 21分
マージ済み PR(30日)
873

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ClickHouse/loom のほかの issue

ClickHouse/loom の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。