Table of Contents

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

service IAIService

Returns

IReadOnlyList<AICitation>

GetLastProcessing(IAIService)

Reads processing observations when the service implements the optional diagnostic capability.

public static IReadOnlyList<AIProcessingInfo> GetLastProcessing(this IAIService service)

Parameters

service IAIService

Returns

IReadOnlyList<AIProcessingInfo>

WithFileSearch<TService>(TService, params FileSearchStore[])

public static TService WithFileSearch<TService>(this TService service, params FileSearchStore[] stores) where TService : IAIService

Parameters

service TService
stores FileSearchStore[]

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

service TService
level ReasoningLevel
cache CachePreservation

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

service TService
speed InferenceSpeed

Returns

TService

Type Parameters

TService

WithWebSearch<TService>(TService, WebSearchOptions?)

public static TService WithWebSearch<TService>(this TService service, WebSearchOptions? options = null) where TService : IAIService

Parameters

service TService
options WebSearchOptions

Returns

TService

Type Parameters

TService