Class: PromptObjects::Primitive

Inherits:
Capability show all
Defined in:
lib/prompt_objects/primitive.rb

Overview

Base class for primitive capabilities. Primitives are deterministic Ruby implementations (no LLM interpretation).

Instance Attribute Summary

Attributes inherited from Capability

#description, #name, #state

Instance Method Summary collapse

Methods inherited from Capability

#descriptor, execution_policy, execution_policy_definition, #execution_policy_definition, #execution_policy_signature, #parameters, #receive, #resolved_execution_policy

Constructor Details

#initializePrimitive

Primitives are always "idle" in terms of state since they execute synchronously



8
9
10
11
# File 'lib/prompt_objects/primitive.rb', line 8

def initialize
  super
  @state = :idle
end