Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openrouter
v0.7.0
OpenRouter
ApiError
BadGatewayError
BadRequestError
Choice
Client
CompletionRequest
Content
ContentPart
Error
ForbiddenError
Function
FunctionParameter
Message
Model
NonChatChoice
NonStreamingChoice
PaymentRequiredError
RequestTimeoutError
Response
ResponseObject
Role
ServiceUnavailableError
StreamingChoice
Tool
ToolCall
ToolCallArgument
TooManyRequestsError
UnauthorizedError
Usage
Generated using Crystal 1.14.0
2025-01-03 10:41:29 UTC
struct
OpenRouter::
ToolCallArgument
OpenRouter::ToolCallArgument
Struct
Value
Object
Defined in:
openrouter/types/tool_call.cr
Constructors
.new
(name : String, value : String)
Class Method Summary
.from_json
(json : JSON::Any)
Instance Method Summary
#name
: String
#to_json
(io : IO)
#to_json
(json : JSON::Builder)
#value
: String
Constructor Detail
def self.
new
(name : String, value : String)
#
[
View source
]
Class Method Detail
def self.
from_json
(json : JSON::Any)
#
[
View source
]
Instance Method Detail
def
name
: String
#
[
View source
]
def
to_json
(io : IO)
#
[
View source
]
def
to_json
(json : JSON::Builder)
#
[
View source
]
def
value
: String
#
[
View source
]