class Vellum::FunctionCallChatMessageContentRequest
A function call value that is used in a chat message.
def self.from_json(json_object:)
-
(FunctionCallChatMessageContentRequest)-
Parameters:
-
json_object(JSON) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) if parsed_json["value"].nil? value = nil else value = parsed_json["value"].to_json value = FunctionCallChatMessageContentValueRequest.from_json(json_object: value) end new(value: value, additional_properties: struct) end
def self.validate_raw(obj:)
-
(Void)-
Parameters:
-
obj(Object) --
def self.validate_raw(obj:) FunctionCallChatMessageContentValueRequest.validate_raw(obj: obj.value) end
def initialize(value:, additional_properties: nil)
-
(FunctionCallChatMessageContentRequest)-
Parameters:
-
additional_properties(OpenStruct) -- Additional properties unmapped to the current class definition -
value(FunctionCallChatMessageContentValueRequest) --
def initialize(value:, additional_properties: nil) # @type [FunctionCallChatMessageContentValueRequest] @value = value # @type [OpenStruct] Additional properties unmapped to the current class definition @additional_properties = additional_properties end
def to_json(*_args)
-
(JSON)-
def to_json(*_args) { "value": @value }.to_json end