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
repliesstring[]
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
responderFunc<AIRequest, string>Returns the reply text for a request.
embedderFunc<string, float[]>Returns the embedding for a text. Null means the provider supports no embeddings.