Method ReturnRequested
- Namespace
- IntentSharp.Specialist.Testing
- Assembly
- IntentSharp.Specialist.dll
ReturnRequested(string, string?, string?)
A responder that hands back the requested definition unchanged, to run on the provider configured on the client
under providerName, with the request hash recorded in the offer's facts.
public static Func<SpecialistRequest, SpecialistOffer?> ReturnRequested(string providerName, string? model = null, string? specialistName = null)
Parameters
providerNamestringThe name of a provider configured on the client.
modelstringThe model to ask that provider for, or null for its default.
specialistNamestringThe specialist's name the offer gives, or null for none.
Returns
- Func<SpecialistRequest, SpecialistOffer>
ReturnRequested(IAIProvider, string?, string?)
A responder that hands back the requested definition unchanged, to run on provider, which the
runtime reaches through its SpecialistRouter.
public static Func<SpecialistRequest, SpecialistOffer?> ReturnRequested(IAIProvider provider, string? model = null, string? specialistName = null)
Parameters
providerIAIProviderThe provider that plays the specialist.
modelstringThe model to ask that provider for, or null for its default.
specialistNamestringThe specialist's name the offer gives, or null for none.
Returns
- Func<SpecialistRequest, SpecialistOffer>