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.



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

#loadObject



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

def load
  @content
end