Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Providers::OpenAI::Chat::ToolDefinition
Inherits
Struct
<
Value
<
Object
Constructors
from_tool
(tool :
Crig::Completion::ToolDefinition
) : self
Source
new
(function :
FunctionDefinition
, type :
String
= "function")
Source
Instance methods
function
Source
to_json_value
Source
type
Source
with_strict
Source