Table of Contents

Interface IAIRequestFeatureService

Namespace
Mythosia.AI.Services
Assembly
Mythosia.AI.Abstractions.dll

Optional capability for reasoning and provider-hosted search. Existing IAIService implementations need not implement it.

public interface IAIRequestFeatureService

Properties

LastCitations

A snapshot of source references collected by the most recent request.

IReadOnlyList<AICitation> LastCitations { get; }

Property Value

IReadOnlyList<AICitation>

Methods

BeginRequestFeaturesScope(Message)

Captures options before wrapper preparation. Dispose after the logical request; nested calls share the scope.

IDisposable BeginRequestFeaturesScope(Message message)

Parameters

message Message

Returns

IDisposable

Remarks

For orchestration adapters such as RAG. Call synchronously inside the adapter's async request method.

ConfigureRequestFeatures(AIRequestFeatures)

Merges and copies non-null settings for the next logical request.

void ConfigureRequestFeatures(AIRequestFeatures features)

Parameters

features AIRequestFeatures

ValidatePendingRequestFeatures()

Validates pending settings without consuming them or changing conversation history.

void ValidatePendingRequestFeatures()