Class: Legion::Extensions::ServiceNow::Skills::ApprovalWorkflow
- Inherits:
-
LLM::Skills::Base
- Object
- LLM::Skills::Base
- Legion::Extensions::ServiceNow::Skills::ApprovalWorkflow
- Defined in:
- lib/legion/extensions/service_now/skills/approval_workflow.rb
Instance Method Summary collapse
-
#assess_request(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#complete(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#gather_approval_details(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#make_decision(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Instance Method Details
#assess_request(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
26 27 28 29 30 31 |
# File 'lib/legion/extensions/service_now/skills/approval_workflow.rb', line 26 def assess_request(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: 'Assessing the approval request against policy and risk.', metadata: { step: 'assess_request' } ) end |
#complete(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
41 42 43 44 45 46 |
# File 'lib/legion/extensions/service_now/skills/approval_workflow.rb', line 41 def complete(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: 'Approval workflow complete.', metadata: { step: 'complete' } ) end |
#gather_approval_details(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
19 20 21 22 23 24 |
# File 'lib/legion/extensions/service_now/skills/approval_workflow.rb', line 19 def gather_approval_details(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: 'Gathering pending approval details and associated record.', metadata: { step: 'gather_approval_details' } ) end |
#make_decision(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
33 34 35 36 37 38 39 |
# File 'lib/legion/extensions/service_now/skills/approval_workflow.rb', line 33 def make_decision(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: 'Approving or rejecting the request with comments.', metadata: { step: 'make_decision' }, gate: :confirm ) end |