class RubyLLM::MCP::Annotation
def initialize(annotation)
def initialize(annotation) @title = annotation["title"] || "" @read_only_hint = annotation["readOnlyHint"] || false @destructive_hint = annotation["destructiveHint"] || true @idempotent_hint = annotation["idempotentHint"] || false @open_world_hint = annotation["openWorldHint"] || true end
def to_h
def to_h { title: @title, readOnlyHint: @read_only_hint, destructiveHint: @destructive_hint, idempotentHint: @idempotent_hint, openWorldHint: @open_world_hint } end