Module: ActiveAgent::PromptHelper

Defined in:
lib/active_agent/prompt_helper.rb

Overview

Active Agent’s Action Prompt PromptHelper

Provides helper methods for ActiveAgent::Base that can be used for easily formatting prompts, accessing agent or prompt instances.

Instance Method Summary collapse

Instance Method Details

#agentObject

Access the agent instance.



10
11
12
# File 'lib/active_agent/prompt_helper.rb', line 10

def agent
  @_controller
end

#contextObject

Access the prompt instance.



15
16
17
# File 'lib/active_agent/prompt_helper.rb', line 15

def context
  @_context
end