Class: ActiveAgent::Providers::OpenRouter::Requests::Messages::MessageType
- Inherits:
-
MessagesType
- Object
- ActiveModel::Type::Value
- MessagesType
- ActiveAgent::Providers::OpenRouter::Requests::Messages::MessageType
- Defined in:
- lib/active_agent/providers/open_router/requests/messages/_types.rb
Overview
Kept for backwards compatibility but delegates to MessagesType
Instance Method Summary collapse
Methods inherited from MessagesType
Instance Method Details
#cast(value) ⇒ Object
46 47 48 49 50 |
# File 'lib/active_agent/providers/open_router/requests/messages/_types.rb', line 46 def cast(value) # Single message - wrap in array then unwrap result = super(value.is_a?(Array) ? value : [ value ]) result&.first end |