CouncilEx.Schemas.Vote (CouncilEx v0.1.0)

Copy Markdown View Source

Standard Ecto embedded schema for Vote-round member outputs.

Members participating in CouncilEx.Rounds.Vote typically declare output_schema CouncilEx.Schemas.Vote so Instructor casts the LLM response into this shape. Aggregators read by field name (:choice, :confidence).

Summary

Functions

Cast a map into a %Vote{} via changeset.

Types

t()

@type t() :: %CouncilEx.Schemas.Vote{
  choice: String.t(),
  confidence: float(),
  rationale: String.t()
}

Functions

changeset(vote \\ %__MODULE__{}, attrs)

Cast a map into a %Vote{} via changeset.