LemonCore.ChatState (lemon_core v0.1.0)

View Source

Persistent sticky execution state for a chat scope.

Tracks the last engine and resume token so router and channel code can resume a conversation without depending on the gateway runtime.

Summary

Types

t()

@type t() :: %LemonCore.ChatState{
  expires_at: integer() | nil,
  last_engine: String.t() | nil,
  last_resume_token: String.t() | nil,
  updated_at: integer() | nil
}

Functions

new()

@spec new() :: t()

new(attrs)

@spec new(map()) :: t()