Skip to main content

Event

Type Alias Event 

Source
pub type Event = RunEvent;
Expand description

Re-export of the core run-lifecycle event type.

Kept as a type alias for backward compatibility with code that imports fluers_runtime::Event.

Aliased Type§

pub enum Event {
    SessionStarted {
        session: Uuid,
    },
    TurnStarted {
        session: Uuid,
        turn: usize,
    },
    ModelStarted {
        session: Uuid,
        turn: usize,
        model: String,
    },
    ModelFinished {
        session: Uuid,
        turn: usize,
    },
    ToolStarted {
        session: Uuid,
        turn: usize,
        tool: String,
        call_id: String,
    },
    ToolFinished {
        session: Uuid,
        turn: usize,
        tool: String,
        call_id: String,
        ok: bool,
    },
    TurnFinished {
        session: Uuid,
        turn: usize,
    },
    RunFailed {
        session: Uuid,
        error: String,
    },
}

Variants§

§

SessionStarted

A session started (emitted once, before the first turn).

Fields

§session: Uuid

The session id.

§

TurnStarted

A model turn began.

Fields

§session: Uuid

The session id.

§turn: usize

The 1-indexed turn number.

§

ModelStarted

The model provider was invoked for this turn.

Fields

§session: Uuid

The session id.

§turn: usize

The 1-indexed turn number.

§model: String

The model id (e.g. "minimax/minimax-m3").

§

ModelFinished

The model provider returned for this turn.

Fields

§session: Uuid

The session id.

§turn: usize

The 1-indexed turn number.

§

ToolStarted

A tool call was dispatched.

Fields

§session: Uuid

The session id.

§turn: usize

The 1-indexed turn number.

§tool: String

The tool name.

§call_id: String

The tool call id (correlates with [RunEvent::ToolFinished]).

§

ToolFinished

A tool call completed.

Fields

§session: Uuid

The session id.

§turn: usize

The 1-indexed turn number.

§tool: String

The tool name.

§call_id: String

The tool call id (correlates with [RunEvent::ToolStarted]).

§ok: bool

Whether the tool succeeded.

§

TurnFinished

A turn completed.

Fields

§session: Uuid

The session id.

§turn: usize

The 1-indexed turn number.

§

RunFailed

The run failed.

Fields

§session: Uuid

The session id.

§error: String

A bounded error summary. Truncated to keep user content out of telemetry: provider/tool response bodies embedded in error strings are capped at [ERROR_SUMMARY_MAX_CHARS] characters. Use this for debugging signal, not as a source of truth about user data.