class

OpenRouter::FunctionParameter

Inherits JSON::Serializable < Reference < Object

Constructors

new(name : String, type : String, description : String, required : Bool = false, items_type : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description
Source
description=(description : String)
Source
items_type
Source
items_type=(items_type : String | Nil)
Source
name
Source
name=(name : String)
Source
required
Source
required=(required : Bool)
Source
to_json(json : JSON::Builder)

Custom serialization for complex structure

Source
type
Source
type=(type : String)
Source