Module: Raif::Concerns::HasPromptTemplates
- Extended by:
- ActiveSupport::Concern
- Included in:
- Agent, Raif::Conversation, Task
- Defined in:
- app/models/raif/concerns/has_prompt_templates.rb
Defined Under Namespace
Classes: TemplateContext
Instance Method Summary collapse
Instance Method Details
#build_prompt ⇒ Object
40 41 42 43 44 45 46 |
# File 'app/models/raif/concerns/has_prompt_templates.rb', line 40 def build_prompt if prompt_template_exists?(:prompt) render_prompt_template(:prompt) else super end end |
#build_system_prompt ⇒ Object
48 49 50 51 52 53 54 |
# File 'app/models/raif/concerns/has_prompt_templates.rb', line 48 def build_system_prompt if prompt_template_exists?(:system_prompt) render_prompt_template(:system_prompt) else super end end |