SessionEvent

One event of a session: a prompt, a block of the answer, a tool call, a usage report, a limit, an error or the end of a turn (trove-parts §TPN-3).

Group libllmsession

In the namespace octomy::llmsession. Declared in src/libs/libllmsession/llmsession/SessionEvent.hpp.

Detailed description

The event types are the part's own. A transport maps the output of its provider into them, so that a reader of the store does not know which provider ran the session. seq is the cursor of session.events: it is dense and starts at 1 in each session. The store gives it when it appends the event.

blocks holds the content blocks of the event, as JSON objects with a type each. tokens holds the token counts of a usage event.

See also octomy::llmsession::SessionStore.

In this section