Class DelegateContextSource
- Namespace
- IntentSharp.Specialist
- Assembly
- IntentSharp.Specialist.dll
A context source that calls a function of the developer's own.
public sealed class DelegateContextSource : ISpecialistContextSource
- Inheritance
-
objectDelegateContextSource
- Implements
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- DelegateContextSource(Func<IntentDefinition, IReadOnlyList<SpecialistContextItem>>)
Creates the source from a function that returns the items at once.
- DelegateContextSource(Func<IntentDefinition, CancellationToken, ValueTask<IReadOnlyList<SpecialistContextItem>>>)
Creates the source.
Methods
- GetContextAsync(IntentDefinition, CancellationToken)
Returns the items to send with a request for
definition; an empty list sends none.