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