Spectre.Server.Context (Spectre v0.4.0)

Copy Markdown View Source

Application view of a Server dispatch.

assigns, process-local private data and commands added by the Server helpers are acquired on return. private may hold timer/monitor references and actor handles; it is never checkpointed or sent to cognitive services. Identity, session, input and pending fields are read-only views. The dispatch token detects accidentally returning a context from another callback; it is not a security boundary against code in the same BEAM process.

Summary

Types

t()

@type t() :: %Spectre.Server.Context{
  agent: term(),
  assigns: term(),
  commands: term(),
  dispatch_token: term(),
  identity: term(),
  input: term(),
  interaction: term(),
  memory: term(),
  pending: term(),
  pending_by_id: term(),
  private: term(),
  routing: term(),
  session: term(),
  skill: term()
}