Class OllamaCredential

java.lang.Object
io.agentscope.core.credential.CredentialBase
io.agentscope.extensions.model.ollama.credential.OllamaCredential

public final class OllamaCredential extends io.agentscope.core.credential.CredentialBase
Credential for the Ollama local server (connection settings only).

host may be null, in which case the model class falls back to http://localhost:11434.

  • Field Details

  • Method Details

    • getType

      public String getType()
    • getHost

      public String getHost()
    • getChatModelClass

      public Class<? extends io.agentscope.core.model.ChatModelBase> getChatModelClass()
      Specified by:
      getChatModelClass in class io.agentscope.core.credential.CredentialBase
    • toString

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

      public static OllamaCredential.Builder builder()