Table of Contents

Enum AIFinishReason

Namespace
Mythosia.AI.Models.Streaming
Assembly
Mythosia.AI.Abstractions.dll

A normalized provider response termination reason. Errors still fail the run.

public enum AIFinishReason

Fields

ContentFilter = 4

The provider reported filtering or refusal.

MaxTokens = 2

The provider reached its output token limit.

Other = 5

The provider reported a reason without a common equivalent.

Stop = 1

The provider completed its response normally.

ToolCalls = 3

The provider requested tool execution.

Unknown = 0

The provider did not report a termination reason.