Java / Kotlin SDK

未关闭
#53 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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
星标
221
派生
35
平均合并
14 小时 21 分钟
30 天内合并 PR
873

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ClickHouse/loom 的其他 Issue

查看 ClickHouse/loom 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。