Class: Intelligence::MessageContent::Base
- Inherits:
-
Object
- Object
- Intelligence::MessageContent::Base
- Includes:
- DynamicSchema::Buildable, DynamicSchema::Definable
- Defined in:
- lib/intelligence/message_content/base.rb
Direct Known Subclasses
Binary, File, Text, ToolCall, ToolResult
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
- #valid? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/intelligence/message_content/base.rb', line 8 def initialize( attributes = {} ) attributes.each do | key, value | instance_variable_set( "@#{key}", value.freeze ) if self.respond_to?( "#{key}" ) end end |
Instance Method Details
#valid? ⇒ Boolean
14 15 16 |
# File 'lib/intelligence/message_content/base.rb', line 14 def valid? false end |