Table of Contents

Class OllamaDetector

Namespace
JD.AI.Core.Providers
Assembly
JD.AI.Core.dll

Detects Ollama instances (local and optionally named remote endpoints) and enumerates models.

public sealed class OllamaDetector : IProviderDetector
Inheritance
OllamaDetector
Implements
Inherited Members

Constructors

OllamaDetector(ProviderConfigurationManager, string)

public OllamaDetector(ProviderConfigurationManager config, string defaultEndpoint = "http://localhost:11434")

Parameters

config ProviderConfigurationManager
defaultEndpoint string

OllamaDetector(string)

public OllamaDetector(string endpoint = "http://localhost:11434")

Parameters

endpoint string

Properties

ProviderName

public string ProviderName { get; }

Property Value

string

Methods

BuildKernel(ProviderModelInfo)

public Kernel BuildKernel(ProviderModelInfo model)

Parameters

model ProviderModelInfo

Returns

Kernel

DetectAsync(CancellationToken)

public Task<ProviderInfo> DetectAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task<ProviderInfo>