Class: Ask::Agent::ContextSources::Instructions

Inherits:
Ask::Agent::ContextSource show all
Defined in:
lib/ask/agent/context_sources.rb

Overview

The agent's core instructions (system prompt / instructions.md).

Instance Method Summary collapse

Methods inherited from Ask::Agent::ContextSource

inherited, key, #key, registered_sources, #update

Constructor Details

#initialize(content) ⇒ Instructions

Returns a new instance of Instructions.



11
12
13
# File 'lib/ask/agent/context_sources.rb', line 11

def initialize(content)
  @content = content.to_s
end

Instance Method Details

#baseline(content) ⇒ Object



19
20
21
# File 'lib/ask/agent/context_sources.rb', line 19

def baseline(content)
  content
end

#loadObject



15
16
17
# File 'lib/ask/agent/context_sources.rb', line 15

def load
  @content
end