Class: Legion::Extensions::ServiceNow::Skills::ServiceCatalog

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

Instance Method Summary collapse

Instance Method Details

#browse_catalog(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def browse_catalog(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Browsing ServiceNow service catalog.',
    metadata: { step: 'browse_catalog' }
  )
end

#complete(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

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

#configure_request(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def configure_request(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Configuring request variables and quantity.',
    metadata: { step: 'configure_request' },
    gate:     :confirm
  )
end

#select_item(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def select_item(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Which catalog item would you like to request?',
    metadata: { step: 'select_item' },
    gate:     :confirm
  )
end

#submit_order(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def submit_order(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Submitting service catalog order.',
    metadata: { step: 'submit_order' }
  )
end