Class: ActiveAgent::Providers::Common::Responses::Format
- Defined in:
- lib/active_agent/providers/common/responses/format.rb
Instance Method Summary collapse
-
#format=(value) ⇒ Object
OpenAI’s Responses => Common Format.
-
#json_schema=(value) ⇒ Object
OpenAI’s Chat => Common Format.
Methods inherited from 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
#format=(value) ⇒ Object
OpenAI’s Responses => Common Format
18 19 20 |
# File 'lib/active_agent/providers/common/responses/format.rb', line 18 def format=(value) self.type = value[:type] end |
#json_schema=(value) ⇒ Object
OpenAI’s Chat => Common Format
23 24 25 26 |
# File 'lib/active_agent/providers/common/responses/format.rb', line 23 def json_schema=(value) self.name = value[:name] if value[:name] self.schema = value[:schema] if value[:schema] end |