Class: Luo::AgentRunnerContext
- Inherits:
-
Object
- Object
- Luo::AgentRunnerContext
- Includes:
- Configurable
- Defined in:
- lib/luo/agent_runner_context.rb
Instance Attribute Summary collapse
-
#action_input ⇒ Object
Returns the value of attribute action_input.
-
#agent_results ⇒ Object
Returns the value of attribute agent_results.
-
#final_result ⇒ Object
Returns the value of attribute final_result.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#response ⇒ Object
Returns the value of attribute response.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#user_input ⇒ Object
Returns the value of attribute user_input.
Instance Method Summary collapse
- #client ⇒ Object
- #client=(client) ⇒ Object
- #have_running_agents ⇒ Object
- #histories ⇒ Object
- #histories=(histories) ⇒ Object
-
#initialize ⇒ AgentRunnerContext
constructor
A new instance of AgentRunnerContext.
Methods included from Configurable
Constructor Details
#initialize ⇒ AgentRunnerContext
Returns a new instance of AgentRunnerContext.
10 11 12 13 |
# File 'lib/luo/agent_runner_context.rb', line 10 def initialize @agent_results = [] @retries = 0 end |
Instance Attribute Details
#action_input ⇒ Object
Returns the value of attribute action_input.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def action_input @action_input end |
#agent_results ⇒ Object
Returns the value of attribute agent_results.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def agent_results @agent_results end |
#final_result ⇒ Object
Returns the value of attribute final_result.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def final_result @final_result end |
#messages ⇒ Object
Returns the value of attribute messages.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def end |
#response ⇒ Object
Returns the value of attribute response.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def response @response end |
#retries ⇒ Object
Returns the value of attribute retries.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def retries @retries end |
#user_input ⇒ Object
Returns the value of attribute user_input.
8 9 10 |
# File 'lib/luo/agent_runner_context.rb', line 8 def user_input @user_input end |
Instance Method Details
#client ⇒ Object
23 24 25 |
# File 'lib/luo/agent_runner_context.rb', line 23 def client @client end |
#client=(client) ⇒ Object
27 28 29 |
# File 'lib/luo/agent_runner_context.rb', line 27 def client=(client) @client = client end |
#have_running_agents ⇒ Object
31 32 33 |
# File 'lib/luo/agent_runner_context.rb', line 31 def have_running_agents @running_agents ||= Set.new end |
#histories ⇒ Object
15 16 17 |
# File 'lib/luo/agent_runner_context.rb', line 15 def histories @histories ||= config.history_adapter.call(self) end |
#histories=(histories) ⇒ Object
19 20 21 |
# File 'lib/luo/agent_runner_context.rb', line 19 def histories=(histories) @histories = histories end |