Class: Legion::Extensions::ServiceNow::Skills::Incident

Inherits:
LLM::Skills::Base
  • Object
show all
Defined in:
lib/legion/extensions/service_now/skills/incident.rb

Instance Method Summary collapse

Instance Method Details

#assess_severity(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



21
22
23
24
25
26
# File 'lib/legion/extensions/service_now/skills/incident.rb', line 21

def assess_severity(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Assessing incident severity based on impact and urgency.',
    metadata: { step: 'assess_severity' }
  )
end

#complete(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



43
44
45
46
47
48
# File 'lib/legion/extensions/service_now/skills/incident.rb', line 43

def complete(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Incident workflow complete.',
    metadata: { step: 'complete' }
  )
end

#confirm_with_user(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



36
37
38
39
40
41
# File 'lib/legion/extensions/service_now/skills/incident.rb', line 36

def confirm_with_user(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Awaiting user confirmation before proceeding.',
    metadata: { step: 'confirm_with_user' }
  )
end

#determine_action(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



28
29
30
31
32
33
34
# File 'lib/legion/extensions/service_now/skills/incident.rb', line 28

def determine_action(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Determining recommended action: escalate, assign, or resolve.',
    metadata: { step: 'determine_action' },
    gate:     :confirm
  )
end

#gather_context(context: {}) ⇒ Object



14
15
16
17
18
19
# File 'lib/legion/extensions/service_now/skills/incident.rb', line 14

def gather_context(context: {})
  Legion::LLM::Skills::StepResult.new(
    inject:   "Gathering incident context from ServiceNow. Project: #{detect_project(context)}",
    metadata: { step: 'gather_context' }
  )
end