struct
OpenRouter::ToolCall
- OpenRouter::ToolCall
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
openrouter/types/tool_call.crConstructors
- .new(id : String, name : String, arguments : Array(ToolCallArgument) = [] of ToolCallArgument, type : String = "function")
- .new(pull : JSON::PullParser)
Instance Method Summary
- #arguments : Array(ToolCallArgument)
- #function_data : ToolFunction
- #function_data=(function_data : ToolFunction)
- #id : String
- #id=(id : String)
-
#name
Convenience getters that delegate to function_data
- #type : String
- #type=(type : String)
Constructor Detail
def self.new(id : String, name : String, arguments : Array(ToolCallArgument) = [] of ToolCallArgument, type : String = "function")
#