Java / Kotlin SDK

Đang mở
#53 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, kotlin
Lĩnh vực
api, backend-api-design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
263
Fork
47
Merge trung bình
14 giờ 21 phút
Pull request đã merge (30 ngày)
873

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ClickHouse/loom

Tất cả issue của ClickHouse/loom

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.