class

LLM::OpenAI::Message::ToolCall

Inherits LLM::OpenAI::Message < JSON::Serializable < Reference < Object

Represents a tool-call result message in a request to the LLM

Constants

ROLE = "tool"

Constructors

new(tool_call_id : String, name : String, content : String)
Source
new(pull : JSON::PullParser)

Represents a tool-call result message in a request to the LLM

Source

Instance methods

content
Source
content=(content : String)
Source
emit

Emit this message as one or more ChatEvent objects

Source
name
Source
name=(name : String)
Source
tool_call_id
Source
tool_call_id=(tool_call_id : String)
Source