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
-
#agent ⇒ Object
Access the agent instance.
-
#context ⇒ Object
Access the prompt instance.
Instance Method Details
#agent ⇒ Object
Access the agent instance.
10 11 12 |
# File 'lib/active_agent/prompt_helper.rb', line 10 def agent @_controller end |
#context ⇒ Object
Access the prompt instance.
15 16 17 |
# File 'lib/active_agent/prompt_helper.rb', line 15 def context @_context end |