System prompts? #22
-
Seems like a key feature that's missing - lovely library though!! Asking here just in case I missed it, otherwise I'll aim to submit a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Got here because was asking myself the same question. Trying this out for writing an agent in Ruby, looks like a system prompt should be a config on chat? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the love for the library! I've just pushed an update to the documentation that covers system prompts. https://rubyllm.com/guides/chat#system-prompts The functionality has actually been there all along with I'll be adding a |
Beta Was this translation helpful? Give feedback.
Thanks for the love for the library!
I've just pushed an update to the documentation that covers system prompts. https://rubyllm.com/guides/chat#system-prompts
The functionality has actually been there all along with
chat.add_message role: :system, content: "your prompt"
, I just needed to document it.I'll be adding a
chat.with_instructions
method which will make it more elegant and discoverable in the next release!