Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::ToolServerHandle
Inherits
Struct
<
Value
<
Object
Constructors
new
(id :
String
, server :
Crig::ToolServer
|
Nil
= nil, inbox :
Channel
(
Crig::ToolServerRequest
) |
Nil
= nil, resolver :
Proc
(
String
,
String
,
String
) |
Nil
= nil)
Source
with_resolver
(id :
String
, resolver :
Proc
(
String
,
String
,
String
)) : self
Source
Instance methods
add_tool
(tool :
Crig::ToolDyn
) :
Nil
Source
append_toolset
(toolset :
Crig::ToolSet
) :
Nil
Source
call_tool
(name :
String
, arguments :
String
) :
String
Source
execute
(name :
String
, arguments :
String
, context :
Tool::ToolContext
) :
Tool::ToolResult
Source
get_tool_defs
(prompt :
String
|
Nil
) :
Array
(
Crig::Completion::ToolDefinition
)
Source
id
Source
remove_tool
(tool_name :
String
) :
Nil
Source