Class: LLM::Chat::Prompt::Completion
- Inherits:
-
Struct
- Object
- Struct
- LLM::Chat::Prompt::Completion
- Defined in:
- lib/llm/chat/prompt/completion.rb
Instance Attribute Summary collapse
-
#bot ⇒ Object
Returns the value of attribute bot.
Instance Method Summary collapse
Instance Attribute Details
#bot ⇒ Object
Returns the value of attribute bot
4 5 6 |
# File 'lib/llm/chat/prompt/completion.rb', line 4 def bot @bot end |
Instance Method Details
#system(prompt, params = {}) ⇒ LLM::Chat
9 10 11 |
# File 'lib/llm/chat/prompt/completion.rb', line 9 def system(prompt, params = {}) bot.chat prompt, params.merge(role: :system) end |
#user(prompt, params = {}) ⇒ LLM::Chat
17 18 19 |
# File 'lib/llm/chat/prompt/completion.rb', line 17 def user(prompt, params = {}) bot.chat prompt, params.merge(role: :user) end |