Class: Ask::Agent::ContextSources::Instructions
- Inherits:
-
Ask::Agent::ContextSource
- Object
- Ask::Agent::ContextSource
- Ask::Agent::ContextSources::Instructions
- Defined in:
- lib/ask/agent/context_sources.rb
Overview
The agent's core instructions (system prompt / instructions.md).
Instance Method Summary collapse
- #baseline(content) ⇒ Object
-
#initialize(content) ⇒ Instructions
constructor
A new instance of Instructions.
- #load ⇒ Object
Methods inherited from Ask::Agent::ContextSource
inherited, key, #key, registered_sources, #update
Constructor Details
#initialize(content) ⇒ Instructions
Returns a new instance of Instructions.
10 11 12 |
# File 'lib/ask/agent/context_sources.rb', line 10 def initialize(content) @content = content.to_s end |
Instance Method Details
#baseline(content) ⇒ Object
18 19 20 |
# File 'lib/ask/agent/context_sources.rb', line 18 def baseline(content) content end |
#load ⇒ Object
14 15 16 |
# File 'lib/ask/agent/context_sources.rb', line 14 def load @content end |