Table of Contents

Interface IRemoteModelSearch

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

Searches a provider's model catalog and optionally pulls models locally.

public interface IRemoteModelSearch

Properties

ProviderName

string ProviderName { get; }

Property Value

string

Methods

PullAsync(RemoteModelResult, IProgress<string>?, CancellationToken)

Task<bool> PullAsync(RemoteModelResult model, IProgress<string>? progress = null, CancellationToken ct = default)

Parameters

model RemoteModelResult
progress IProgress<string>
ct CancellationToken

Returns

Task<bool>

SearchAsync(string, CancellationToken)

Task<IReadOnlyList<RemoteModelResult>> SearchAsync(string query, CancellationToken ct = default)

Parameters

query string
ct CancellationToken

Returns

Task<IReadOnlyList<RemoteModelResult>>