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



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

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



49
50
51
52
53
54
# File 'lib/legion/extensions/service_now/skills/incident.rb', line 49

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



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

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



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

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



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

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