Module: Axn::Core::SemanticHints

Defined in:
lib/axn/core/semantic_hints.rb

Overview

Advisory-only side-effect / operational profile. Nothing enforces it (a read_only tool can still fire a destructive call, especially idempotent) — the _hints suffix keeps that honest. Core owns :read_only/:idempotent/:destructive; adapters extend the vocab via Axn::Extensions.config.register_semantic_hint. Adapters interpret hints (MCP annotations, REST verb, RubyLLM gating).

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
14
15
16
# File 'lib/axn/core/semantic_hints.rb', line 11

def self.included(base)
  base.class_eval do
    class_attribute :_semantic_hints, instance_accessor: false, default: [].freeze
    extend ClassMethods
  end
end