Table of Contents

Class AIService.RunSession

Namespace
Mythosia.AI.Services.Base
Assembly
Mythosia.AI.dll

Provider extension point for run output, additional input, and transport cleanup.

protected abstract class AIService.RunSession : IAsyncDisposable
Inheritance
AIService.RunSession
Implements
Inherited Members

Constructors

RunSession()

protected RunSession()

Properties

CanSteer

public virtual bool CanSteer { get; }

Property Value

bool

Methods

DisposeAsync()

public virtual ValueTask DisposeAsync()

Returns

ValueTask

SteerAsync(string, CancellationToken)

public virtual Task SteerAsync(string instruction, CancellationToken cancellationToken)

Parameters

instruction string
cancellationToken CancellationToken

Returns

Task

StreamAsync(CancellationToken)

Produces execution events including a final Completion before successful cleanup.

public abstract IAsyncEnumerable<StreamingContent> StreamAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

IAsyncEnumerable<StreamingContent>

Remarks

Custom sessions should attach aggregate usage, final response model and reason, and a one-based final RoundIndex to Completion. Missing data remains unavailable in Result. If aggregate usage is absent, indexed RoundUsage snapshots are accumulated once per index.