Documentation
Table of Contents

Constructor ScriptedProvider

Namespace
IntentSharp.Testing
Assembly
IntentSharp.dll

ScriptedProvider(params string[])

Creates a provider that returns replies in order, one per call. It supports no embeddings.

public ScriptedProvider(params string[] replies)

Parameters

replies string[]

ScriptedProvider(Func<AIRequest, string>, Func<string, float[]>?)

Creates a provider that computes every reply from the request. Queued replies are ignored.

public ScriptedProvider(Func<AIRequest, string> responder, Func<string, float[]>? embedder = null)

Parameters

responder Func<AIRequest, string>

Returns the reply text for a request.

embedder Func<string, float[]>

Returns the embedding for a text. Null means the provider supports no embeddings.