Class: KairosMcp::Daemon::TaskDag::Node
- Inherits:
-
Struct
- Object
- Struct
- KairosMcp::Daemon::TaskDag::Node
- Defined in:
- lib/kairos_mcp/daemon/task_dag.rb
Overview
Node represents a single tool invocation within the DAG.
‘args` is captured verbatim for downstream hashing; the DAG itself never interprets it. `failure_policy` is per-node so different branches of the DAG can have different tolerance semantics.
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#depends_on ⇒ Object
Returns the value of attribute depends_on.
-
#error ⇒ Object
Returns the value of attribute error.
-
#failure_policy ⇒ Object
Returns the value of attribute failure_policy.
-
#id ⇒ Object
Returns the value of attribute id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tool ⇒ Object
Returns the value of attribute tool.
Instance Method Summary collapse
- #cancelled? ⇒ Boolean
- #completed? ⇒ Boolean
- #failed? ⇒ Boolean
- #pending? ⇒ Boolean
- #running? ⇒ Boolean
- #terminal? ⇒ Boolean
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def args @args end |
#depends_on ⇒ Object
Returns the value of attribute depends_on
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def depends_on @depends_on end |
#error ⇒ Object
Returns the value of attribute error
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def error @error end |
#failure_policy ⇒ Object
Returns the value of attribute failure_policy
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def failure_policy @failure_policy end |
#id ⇒ Object
Returns the value of attribute id
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def id @id end |
#status ⇒ Object
Returns the value of attribute status
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def status @status end |
#tool ⇒ Object
Returns the value of attribute tool
36 37 38 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 36 def tool @tool end |
Instance Method Details
#cancelled? ⇒ Boolean
44 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 44 def cancelled?; status == :cancelled; end |
#completed? ⇒ Boolean
42 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 42 def completed?; status == :completed; end |
#failed? ⇒ Boolean
43 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 43 def failed?; status == :failed; end |
#pending? ⇒ Boolean
40 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 40 def pending?; status == :pending; end |
#running? ⇒ Boolean
41 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 41 def running?; status == :running; end |
#terminal? ⇒ Boolean
45 |
# File 'lib/kairos_mcp/daemon/task_dag.rb', line 45 def terminal?; %i[completed failed cancelled].include?(status); end |