CrucibleIR.Feedback.Event (CrucibleIR v0.3.0)
View SourceIndividual feedback data point.
Represents user feedback on model output, which can be used for model improvement and monitoring.
Fields
:id- Event identifier (required):deployment_id- Source deployment:model_version- Model version string:input- Model input:output- Model output:feedback_type- Type of feedback:feedback_value- Feedback value/content:user_id- User identifier:session_id- Session identifier:latency_ms- Response latency:timestamp- Event timestamp:metadata- Additional metadata
Examples
iex> event = %CrucibleIR.Feedback.Event{
...> id: "evt_123",
...> feedback_type: :thumbs,
...> feedback_value: :up
...> }
iex> event.feedback_type
:thumbs
Summary
Types
@type feedback_type() :: :thumbs | :rating | :correction | :label | :flag | atom()
@type t() :: %CrucibleIR.Feedback.Event{ deployment_id: atom() | nil, feedback_type: feedback_type(), feedback_value: term(), id: String.t(), input: map() | nil, latency_ms: pos_integer() | nil, metadata: map() | nil, model_version: String.t() | nil, output: map() | nil, session_id: String.t() | nil, timestamp: DateTime.t() | nil, user_id: String.t() | nil }