struct

Arcana::AI::Chat::ServerTool

Inherits Struct < Value < Object

A server-side tool that the provider executes (e.g. web_search). Unlike Tool, the client doesn't execute these — results come back inline in the same response.

Constructors

code_execution

Convenience: code execution.

Source
new(type : String, name : String, config : Hash(String, JSON::Any) = {} of String => JSON::Any)
Source
web_search(max_uses : Int32 | Nil = nil) : self

Convenience: web search with optional max_uses.

Source

Instance methods

config
Source
config=(config : Hash(String, JSON::Any))
Source
name
Source
name=(name : String)
Source
type
Source
type=(type : String)
Source