featherbit UI
    Preparing search index...

    Type Alias StreamEvent

    StreamEvent:
        | { delta: string; type: "text" }
        | { calls: ToolCall[]; type: "tool_calls" }
        | { finishReason?: string | null; type: "done" }

    Type Declaration

    • { delta: string; type: "text" }
    • { calls: ToolCall[]; type: "tool_calls" }
    • { finishReason?: string | null; type: "done" }

      End of the reply. finishReason is the provider's finish_reason (stop, tool_calls, length, content_filter, …) or null when the stream ended without one — the loop turns anything but a normal finish into a visible notice instead of stopping silently.