Class: Legion::Extensions::ServiceNow::Skills::ProblemManagement

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

Instance Method Summary collapse

Instance Method Details

#complete(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

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

#document_workaround(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def document_workaround(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Documenting workaround and marking as known error if applicable.',
    metadata: { step: 'document_workaround' }
  )
end

#identify_problem(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def identify_problem(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Identifying the problem record and linking related incidents.',
    metadata: { step: 'identify_problem' }
  )
end

#implement_fix(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def implement_fix(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Implementing permanent fix and closing the problem record.',
    metadata: { step: 'implement_fix' },
    gate:     :confirm
  )
end

#investigate_root_cause(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def investigate_root_cause(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Investigating root cause using incident history and audit trail.',
    metadata: { step: 'investigate_root_cause' },
    gate:     :confirm
  )
end