java.lang.Object
com.mulesoft.modules.agent.broker.internal.extension.connection.BaseConnectionProvider
All Implemented Interfaces:
org.mule.runtime.api.connection.CachedConnectionProvider<LLMClient>, org.mule.runtime.api.connection.ConnectionProvider<LLMClient>, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.extension.api.connectivity.NoConnectivityTest, org.mule.sdk.api.connectivity.NoConnectivityTest
Direct Known Subclasses:
GeminiConnectionProvider, OpenAIConnectionProvider

public abstract class BaseConnectionProvider extends Object implements org.mule.runtime.api.connection.CachedConnectionProvider<LLMClient>, org.mule.runtime.extension.api.connectivity.NoConnectivityTest, org.mule.runtime.api.lifecycle.Initialisable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     
    protected org.mule.runtime.api.tls.TlsContextFactory
     

    Fields inherited from interface org.mule.runtime.api.lifecycle.Initialisable

    PHASE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    disconnect(LLMClient connection)
     
    void
     
    org.mule.runtime.api.connection.ConnectionValidationResult
    validate(LLMClient llmClient)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.mule.runtime.api.connection.ConnectionProvider

    connect
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • tlsContextFactory

      @Parameter @Optional @Expression(NOT_SUPPORTED) @Placement(tab="TLS") protected org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory
  • Constructor Details

    • BaseConnectionProvider

      public BaseConnectionProvider()
  • Method Details

    • initialise

      public void initialise() throws org.mule.runtime.api.lifecycle.InitialisationException
      Specified by:
      initialise in interface org.mule.runtime.api.lifecycle.Initialisable
      Throws:
      org.mule.runtime.api.lifecycle.InitialisationException
    • disconnect

      public final void disconnect(LLMClient connection)
      Specified by:
      disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<LLMClient>
    • validate

      public org.mule.runtime.api.connection.ConnectionValidationResult validate(LLMClient llmClient)
      Specified by:
      validate in interface org.mule.runtime.api.connection.ConnectionProvider<LLMClient>