Documentation
Table of Contents

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

providerName string

The name of a provider configured on the client.

model string

The model to ask that provider for, or null for its default.

specialistName string

The 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

provider IAIProvider

The provider that plays the specialist.

model string

The model to ask that provider for, or null for its default.

specialistName string

The specialist's name the offer gives, or null for none.

Returns

Func<SpecialistRequest, SpecialistOffer>