Module: Regent::Span::Type

Defined in:
lib/regent/span.rb

Constant Summary collapse

INPUT =
'INPUT'.freeze
LLM_CALL =
'LLM'.freeze
TOOL_EXECUTION =
'TOOL'.freeze
MEMORY_ACCESS =
'MEMO'.freeze
ANSWER =
'ANSWER'.freeze

Class Method Summary collapse

Class Method Details

.allObject



15
16
17
# File 'lib/regent/span.rb', line 15

def self.all
  constants.map { |c| const_get(c) }
end

.valid?(type) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/regent/span.rb', line 19

def self.valid?(type)
  all.include?(type)
end