Class: ActiveAgent::Providers::RubyLLM::Messages::Base
- Inherits:
-
Common::BaseModel
- Object
- Common::BaseModel
- ActiveAgent::Providers::RubyLLM::Messages::Base
- Defined in:
- lib/active_agent/providers/ruby_llm/messages/base.rb
Overview
Base class for RubyLLM messages.
Instance Method Summary collapse
-
#to_common ⇒ Hash
Converts to common format.
Methods inherited from Common::BaseModel
#<=>, #==, attribute, #deep_compact, #deep_dup, delegate_attributes, drop_attributes, inherited, #initialize, #inspect, keys, #merge!, required_attributes, #serialize, #to_h, #to_hash
Constructor Details
This class inherits a constructor from ActiveAgent::Providers::Common::BaseModel
Instance Method Details
#to_common ⇒ Hash
Converts to common format.
19 20 21 22 23 24 25 |
# File 'lib/active_agent/providers/ruby_llm/messages/base.rb', line 19 def to_common { role: role, content: extract_text_content, name: nil } end |