Class: Antigravity::Base

Inherits:
Object
  • Object
show all
Includes:
Emojifiable
Defined in:
lib/antigravity/base.rb

Overview

Base class for all Antigravity domain objects. Subclasses automagically get .emoji / #emoji via Emojifiable.

⚠️ Keep this class SUPER thin! Every SDK class inherits from it, so any weight here is carried by Agent, Tool, Skill, Message, Sidecar::Runner, etc.

Direct Known Subclasses

Agent, Message, Sidecar::Runner, Skill, Tool

Class Method Summary collapse

Methods included from Emojifiable

#emoji, included

Class Method Details

.inherited(subclass) ⇒ Object



13
14
15
16
# File 'lib/antigravity/base.rb', line 13

def self.inherited(subclass)
  super
  subclass.include(Emojifiable) unless subclass < Emojifiable
end