Class AIRequestFeatureExtensions
- Namespace
- Mythosia.AI.Extensions
- Assembly
- Mythosia.AI.Abstractions.dll
Configure the next request while retaining the service's concrete type.
public static class AIRequestFeatureExtensions
- Inheritance
-
AIRequestFeatureExtensions
- Inherited Members
Methods
GetLastCitations(IAIService)
Reads source references when the service implements the optional request-feature capability.
public static IReadOnlyList<AICitation> GetLastCitations(this IAIService service)
Parameters
serviceIAIService
Returns
GetLastProcessing(IAIService)
Reads processing observations when the service implements the optional diagnostic capability.
public static IReadOnlyList<AIProcessingInfo> GetLastProcessing(this IAIService service)
Parameters
serviceIAIService
Returns
WithFileSearch<TService>(TService, params FileSearchStore[])
public static TService WithFileSearch<TService>(this TService service, params FileSearchStore[] stores) where TService : IAIService
Parameters
serviceTServicestoresFileSearchStore[]
Returns
- TService
Type Parameters
TService
WithReasoning<TService>(TService, ReasoningLevel, CachePreservation)
public static TService WithReasoning<TService>(this TService service, ReasoningLevel level, CachePreservation cache = CachePreservation.None) where TService : IAIService
Parameters
serviceTServicelevelReasoningLevelcacheCachePreservation
Returns
- TService
Type Parameters
TService
WithSpeed<TService>(TService, InferenceSpeed)
Configures processing speed for the next request. Fast can incur premium provider charges.
public static TService WithSpeed<TService>(this TService service, InferenceSpeed speed) where TService : IAIService
Parameters
serviceTServicespeedInferenceSpeed
Returns
- TService
Type Parameters
TService
WithWebSearch<TService>(TService, WebSearchOptions?)
public static TService WithWebSearch<TService>(this TService service, WebSearchOptions? options = null) where TService : IAIService
Parameters
serviceTServiceoptionsWebSearchOptions
Returns
- TService
Type Parameters
TService