Interface IAIProvider
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
A model provider. Implementations send one AIRequest and return one AIResponse. Providers are stateless beyond their HTTP client and are safe to share across threads.
public interface IAIProvider
- Extension Methods
Properties
- DefaultModel
Model used when a request does not name one.
- Name
Stable provider name used in results, rate limiting and logs (for example "OpenAI").
- SupportsEmbeddings
True when EmbedAsync(string, CancellationToken) is implemented.
Methods
- CompleteAsync(AIRequest, CancellationToken)
Sends a chat-style request and returns the model's reply.
- EmbedAsync(string, CancellationToken)
Returns an embedding vector for the text. Throws NotSupportedException when SupportsEmbeddings is false.