Class SpringBootLangSmithExample

  • All Implemented Interfaces:

    @SpringBootApplication() 
    public class SpringBootLangSmithExample
    
                        

    Spring Boot example: Send OpenTelemetry traces to LangSmith. Usage: export LANGSMITH_API_KEY=your_api_key export LANGSMITH_PROJECT=my-project # optional, defaults to "default" ./gradlew :langsmith-java-example:run -Pexample=SpringBootLangSmith Then make requests to: http://localhost:8080/api/chat http://localhost:8080/api/analyze?text=hello

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void main(Array<String> args)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringBootLangSmithExample

        SpringBootLangSmithExample()