Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Providers::Cohere::Citation
Inherits
Struct
<
Value
<
Object
Constructors
from_json_value
(value :
JSON::Any
) : self
Source
new
(start :
Int32
|
Nil
= nil, end_ :
Int32
|
Nil
= nil, text :
String
|
Nil
= nil, citation_type :
CitationType
|
Nil
= nil, sources :
Array
(
Source
) = [] of
Source
)
Source
Instance methods
citation_type
Source
end_
Source
sources
Source
start
Source
text
Source
to_json
(json :
JSON::Builder
) :
Nil
Source