Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
llm-cli
main
LLM
CLI
Chat
Error
Message
Requirements
Role
OpenAI
ChatCompletion
CreateChatCompletion
GPT
List
MessageChoice
Model
Usage
Prompt
Response
Command
Thoughts
Shell
Generated using Crystal 1.14.0
2024-11-26 09:40:02 UTC
struct
LLM::
CLI::
Chat::
Message
LLM::CLI::Chat::Message
Struct
Value
Object
Included Modules
JSON::Serializable
Defined in:
llm-cli/chat.cr
Constructors
.new
(role : Role, content : String)
.new
(pull : JSON::PullParser)
Instance Method Summary
#content
: String
#role
: Role
Constructor Detail
def self.
new
(role :
Role
, content : String)
#
[
View source
]
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Instance Method Detail
def
content
: String
#
[
View source
]
def
role
:
Role
#
[
View source
]