java.lang.Object
com.langfuse.client.resources.llmconnections.types.LlmConnection

public final class LlmConnection extends Object
  • Method Details

    • getId

      public String getId()
    • getProvider

      public String getProvider()
      Returns:
      Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting.
    • getAdapter

      public String getAdapter()
      Returns:
      The adapter used to interface with the LLM
    • getDisplaySecretKey

      public String getDisplaySecretKey()
      Returns:
      Masked version of the secret key for display purposes
    • getBaseUrl

      public Optional<String> getBaseUrl()
      Returns:
      Custom base URL for the LLM API
    • getCustomModels

      public List<String> getCustomModels()
      Returns:
      List of custom model names available for this connection
    • getWithDefaultModels

      public boolean getWithDefaultModels()
      Returns:
      Whether to include default models for this adapter
    • getExtraHeaderKeys

      public List<String> getExtraHeaderKeys()
      Returns:
      Keys of extra headers sent with requests (values excluded for security)
    • getConfig

      public Optional<Map<String,Object>> getConfig()
      Returns:
      Adapter-specific configuration. Required for Bedrock ({"region":"us-east-1"}), optional for VertexAI ({"location":"us-central1"}), not used by other adapters.
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static LlmConnection.IdStage builder()