Module: Legion::Data::Models::LLM::ModelHelpers
- Included in:
- Conversation, ConversationCompaction, Message, MessageInferenceMetric, MessageInferenceRequest, MessageInferenceResponse, PolicyEvaluation, RegistryEvent, RouteAttempt, SecurityEvent, ToolCall, ToolCallAttempt
- Defined in:
- lib/legion/data/models/llm/model_helpers.rb
Instance Method Summary collapse
Instance Method Details
#before_create ⇒ Object
10 11 12 13 |
# File 'lib/legion/data/models/llm/model_helpers.rb', line 10 def before_create self[:uuid] ||= SecureRandom.uuid if columns.include?(:uuid) super end |