CouncilEx.Context (CouncilEx v0.1.0)

Copy Markdown View Source

Context object passed to rounds and members during a run. Carries the original input, the prior round results, and run metadata.

Summary

Types

t()

@type t() :: %CouncilEx.Context{
  council: module(),
  input: term(),
  metadata: map(),
  prior_rounds: [CouncilEx.RoundResult.t()],
  run_id: String.t()
}

Functions

append_round(ctx, rr)

@spec append_round(t(), CouncilEx.RoundResult.t()) :: t()

new(opts)

@spec new(keyword()) :: t()

previous_round(context)

@spec previous_round(t()) :: CouncilEx.RoundResult.t() | nil