Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

enhancement: Improve Environment Variable Compatibility in LangSmith Java SDK

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java, kotlin
Lĩnh vực
developer-experience

Hướng nghiên cứu

Xác định logic phân giải biến môi trường của Java SDK và đối chiếu các tên được hỗ trợ với các yêu cầu của issue. Thêm các unit test cho LANGSMITH_API_KEY, LANGCHAIN_API_KEY và LANGSMITH_WORKSPACE_ID, sau đó cập nhật tài liệu cấu hình với các quy tắc ưu tiên. Công việc được xem là hoàn tất khi các biến khởi tạo cấu hình một cách nhất quán và hành vi được hỗ trợ được ghi lại trong tài liệu.

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

Mô tả

Summary

The Java SDK currently appears to support a limited set of environment variables for authentication and configuration. Other LangSmith SDKs (Python/JavaScript) support additional environment variable names, including legacy aliases and workspace configuration variables.

Current Behavior

The SDK only recognizes a subset of environment variables for configuration.

Example:

LANGCHAIN_API_KEY=<key>
LANGSMITH_WORKSPACE_ID=<workspace>

The client may fail to initialize correctly or ignore these values.

Desired Behavior

The Java SDK should provide parity with other LangSmith SDKs by supporting:

  • LANGSMITH_API_KEY
  • LANGCHAIN_API_KEY (legacy compatibility)
  • LANGSMITH_WORKSPACE_ID

The SDK should document the precedence order when multiple variables are present.

Benefits

  • Consistent behavior across LangSmith SDKs.
  • Easier migration from Python and JavaScript implementations.
  • Reduced configuration errors for users operating in multi-language environments.

Proposed Implementation

  1. Update environment variable resolution logic.
  2. Add support for legacy aliases where appropriate.
  3. Add unit tests covering all supported variables.
  4. Update documentation with supported configuration options and precedence rules.

Additional Context

This change would improve developer experience and align the Java SDK with behavior already familiar to users of other LangSmith SDKs.

Ngôn ngữ chính
Kotlin
Star
33
Fork
8
Merge trung bình
6 ngày 2 giờ
Pull request đã merge (30 ngày)
4

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

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 langchain-ai/langsmith-java

Tất cả issue của langchain-ai/langsmith-java

Issue tương tự

Thêm issue về Kotlin

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.