Class: ActiveAgent::Providers::OpenRouter::Requests::Messages::Content::ContentsType
- Inherits:
-
OpenAI::Chat::Requests::Messages::Content::ContentsType
- Object
- OpenAI::Chat::Requests::Messages::Content::ContentsType
- ActiveAgent::Providers::OpenRouter::Requests::Messages::Content::ContentsType
- Defined in:
- lib/active_agent/providers/open_router/requests/messages/content/_types.rb
Overview
Type for handling content (string or array of content parts) in OpenRouter.
Extends OpenAI's ContentsType to use OpenRouter's ContentType which handles files differently (preserves data URI prefix).
Instance Method Summary collapse
-
#initialize ⇒ ContentsType
constructor
A new instance of ContentsType.
Constructor Details
#initialize ⇒ ContentsType
Returns a new instance of ContentsType.
17 18 19 20 |
# File 'lib/active_agent/providers/open_router/requests/messages/content/_types.rb', line 17 def initialize super @content_type = ContentType.new end |