Class AIService.RunSession
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
Methods
DisposeAsync()
public virtual ValueTask DisposeAsync()
Returns
SteerAsync(string, CancellationToken)
public virtual Task SteerAsync(string instruction, CancellationToken cancellationToken)
Parameters
instructionstringcancellationTokenCancellationToken
Returns
StreamAsync(CancellationToken)
Produces execution events including a final Completion before successful cleanup.
public abstract IAsyncEnumerable<StreamingContent> StreamAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
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.