struct

Crig::Completion::ToolResultContent

Inherits Struct < Value < Object

Constructors

image_base64(data : String, media_type : ImageMediaType | Nil = nil, detail : ImageDetail | Nil = nil) : self
Source
image_raw(data : Bytes, media_type : ImageMediaType | Nil = nil, detail : ImageDetail | Nil = nil) : self
Source
image_url(url : String, media_type : ImageMediaType | Nil = nil, detail : ImageDetail | Nil = nil) : self
Source
json(value : JSON::Any) : self
Source
new(kind : Kind, text : Text | Nil = nil, image : Image | Nil = nil, json_value : JSON::Any | Nil = nil)
Source
text(text : String) : self
Source

Class methods

from_tool_output(output : String) : Crig::OneOrMany(self)

ameba:disable Metrics/CyclomaticComplexity

Source

Instance methods

as_json?
Source
as_text?
Source
image
Source
json_value
Source
kind
Source
text
Source

Nested types