Class BedrockProvider

All Implemented Interfaces:
ExtensionPoint, Describable<BaseAIProvider>

public class BedrockProvider extends ChatModelAIProvider
  • Constructor Details

    • BedrockProvider

      @DataBoundConstructor public BedrockProvider(String url, String model, String region, String roleArn)
  • Method Details

    • getRegion

      public String getRegion()
    • getEffectiveEndpointForDiagnostics

      public String getEffectiveEndpointForDiagnostics()
      Description copied from class: BaseAIProvider
      The endpoint URL this provider would call, used only to run connection diagnostics when a configuration test fails. Providers with a fixed or derivable default endpoint should override this to return it when no explicit URL is configured.
      Overrides:
      getEffectiveEndpointForDiagnostics in class BaseAIProvider
      Returns:
      the effective endpoint URL, or null when unknown
    • getRoleArn

      public String getRoleArn()
    • createChatModel

      protected dev.langchain4j.model.chat.ChatModel createChatModel(@CheckForNull Item item, @CheckForNull org.springframework.security.core.Authentication authentication, @CheckForNull Double temperature)
      Description copied from class: ChatModelAIProvider
      Creates the chat model for one request.
      Specified by:
      createChatModel in class ChatModelAIProvider
      Parameters:
      item - the item defining the credentials scope, or null
      authentication - the authentication for credentials lookup, or null
      temperature - the temperature to use, or null for the provider default
      Returns:
      the configured chat model
    • isNotValid

      public boolean isNotValid(@CheckForNull TaskListener listener)
      Specified by:
      isNotValid in class BaseAIProvider