Class: Legion::Tools::Status
- Extended by:
- Logging::Helper
- Defined in:
- lib/legion/tools/status.rb
Class Method Summary collapse
Methods inherited from Base
deferred, deferred?, description, error_response, extension, handle_exception, input_schema, log, mcp_category, mcp_tier, runner, tags, text_response, tool_name, trigger_words
Class Method Details
.call(**_args) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/legion/tools/status.rb', line 13 def call(**_args) status = { version: defined?(Legion::VERSION) ? Legion::VERSION : 'unknown', ready: readiness_check, components: components_check, node: node_name } text_response(status) rescue StandardError => e handle_exception(e, level: :warn, handled: true, operation: :tool_status_call) error_response("Failed to get status: #{e.}") end |