Class: Legion::Extensions::ServiceNow::Skills::CmdbQuery

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

Instance Method Summary collapse

Instance Method Details

#clarify_query(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def clarify_query(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Clarifying CMDB query: what CI class and attributes are you looking for?',
    metadata: { step: 'clarify_query' },
    gate:     :confirm
  )
end

#complete(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

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

#present_results(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def present_results(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Presenting CMDB query results with relationships.',
    metadata: { step: 'present_results' }
  )
end

#scope_search(context: {}) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



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

def scope_search(context: {}) # rubocop:disable Lint/UnusedMethodArgument
  Legion::LLM::Skills::StepResult.new(
    inject:   'Scoping CMDB search by class, name, and environment.',
    metadata: { step: 'scope_search' }
  )
end