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



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

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



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

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



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

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



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

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