Class: HermesAgent::Client::Entities::RunApprovalResponse
- Inherits:
-
HermesAgent::Client::Entity
- Object
- HermesAgent::Client::Entity
- HermesAgent::Client::Entities::RunApprovalResponse
- Defined in:
- lib/hermes_agent/client/entities/run.rb
Overview
The acknowledgement returned by responding to a run's pending approval
(Resources::Runs#respond_approval): {object:
"hermes.run.approval_response", run_id, choice, resolved}. The run then
resumes (the gated tool executes on an approve, or is aborted on a
deny — though a denied run still ends completed); observe the
approval.responded and tool.completed frames on the event stream, or
poll Resources::Runs#get, for the outcome.
Instance Method Summary collapse
-
#choice ⇒ String?
The choice that was submitted:
"once","session","always", or"deny". -
#object ⇒ String?
The object type,
"hermes.run.approval_response". -
#resolved ⇒ Integer?
The number of pending approvals resolved by the response.
-
#run_id ⇒ String?
The id of the run whose approval was answered (
"run_…").
Methods inherited from HermesAgent::Client::Entity
Instance Method Details
#choice ⇒ String?
The choice that was submitted: "once", "session", "always", or
"deny".
413 414 415 |
# File 'lib/hermes_agent/client/entities/run.rb', line 413 def choice self["choice"] end |
#object ⇒ String?
The object type, "hermes.run.approval_response".
396 397 398 |
# File 'lib/hermes_agent/client/entities/run.rb', line 396 def object self["object"] end |
#resolved ⇒ Integer?
The number of pending approvals resolved by the response.
421 422 423 |
# File 'lib/hermes_agent/client/entities/run.rb', line 421 def resolved self["resolved"] end |
#run_id ⇒ String?
The id of the run whose approval was answered ("run_…").
404 405 406 |
# File 'lib/hermes_agent/client/entities/run.rb', line 404 def run_id self["run_id"] end |