8000 GitHub - langfuse/langfuse-java at dc1d7b764953f6e00b489dea8f8a2e315c305990
[go: up one dir, main page]

Skip to content

langfuse/langfuse-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

langfuse-java

This repository contains an auto-generated Langfuse API client for Java based on our API specification. See the Langfuse API reference for more details on the available endpoints.

Installation

Add the langfuse-java API client as a dependency using

<dependency>
    <groupId>com.langfuse</groupId>
    <artifactId>langfuse-java</artifactId>
    <version>0.0.1-SNAPSHOT</version>
</dependency>

to fetch our GitHub package.

If you're not scanning the GitHub Package Registry by default, you'll have to add

<repositories>
    <repository>
        <id>github</id>
        <name>GitHub Package Registry</name>
        <url>https://maven.pkg.github.com/langfuse/langfuse-java</url>
    </repository>
</repositories>

as well.

Usage

Updating

  1. Ensure that langfuse-java is placed in the same directory as the main langfuse repository.
  2. Setup a new Java fern generator using
       - name: fernapi/fern-java-sdk
         version: 2.20.1
         output:
           location: local-file-system
           path: ../../../../langfuse-java/src/main/java/com/langfuse/client/
         config:
           client-class-name: LangfuseClient
  3. Generate the new client code using npx fern-api generate --api server.
  4. Manually set the package across all files to com.langfuse.client.
  5. Commit the changes in langfuse-java and push them to the repository.
0