Class AnthropicMetadata

java.lang.Object
dev.langchain4j.model.anthropic.internal.api.AnthropicMetadata

public class AnthropicMetadata extends Object
Represents metadata for Anthropic API requests. Currently supports user_id for tracking and abuse detection.
  • Field Details

    • userId

      public String userId
      An external identifier for the user who is associated with the request. This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.
  • Constructor Details

    • AnthropicMetadata

      public AnthropicMetadata()
    • AnthropicMetadata

      public AnthropicMetadata(String userId)
  • Method Details