Toolnexus.Context (toolnexus v0.9.4)

Copy Markdown View Source

Execution context passed to every tool (SPEC §1).

answer is set only on the §10 re-execution after a wait_for resolved a suspension.

Summary

Types

t()

@type t() :: %Toolnexus.Context{
  agent: String.t() | nil,
  answer: Toolnexus.Answer.t() | nil,
  call_id: String.t() | nil,
  extra: map() | nil,
  message_id: String.t() | nil,
  session_id: String.t() | nil,
  signal: reference() | pid() | nil,
  timeout: non_neg_integer() | nil
}