Class: Legion::Extensions::ServiceNow::Skills::ServiceCatalog
- Inherits:
-
LLM::Skills::Base
- Object
- LLM::Skills::Base
- Legion::Extensions::ServiceNow::Skills::ServiceCatalog
- Defined in:
- lib/legion/extensions/service_now/skills/service_catalog.rb
Instance Method Summary collapse
-
#browse_catalog(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#complete(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#configure_request(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#select_item(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#submit_order(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Instance Method Details
#browse_catalog(context: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
14 15 16 17 18 19 |
# File 'lib/legion/extensions/service_now/skills/service_catalog.rb', line 14 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
44 45 46 47 48 49 |
# File 'lib/legion/extensions/service_now/skills/service_catalog.rb', line 44 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
29 30 31 32 33 34 35 |
# File 'lib/legion/extensions/service_now/skills/service_catalog.rb', line 29 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
21 22 23 24 25 26 27 |
# File 'lib/legion/extensions/service_now/skills/service_catalog.rb', line 21 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
37 38 39 40 41 42 |
# File 'lib/legion/extensions/service_now/skills/service_catalog.rb', line 37 def submit_order(context: {}) # rubocop:disable Lint/UnusedMethodArgument Legion::LLM::Skills::StepResult.new( inject: 'Submitting service catalog order.', metadata: { step: 'submit_order' } ) end |