Class: Regent::Engine::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/regent/engine/base.rb

Direct Known Subclasses

React

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, llm, toolchain, session, max_iterations) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
12
# File 'lib/regent/engine/base.rb', line 6

def initialize(context, llm, toolchain, session, max_iterations)
  @context = context
  @llm = llm
  @toolchain = toolchain
  @session = session
  @max_iterations = max_iterations
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



14
15
16
# File 'lib/regent/engine/base.rb', line 14

def context
  @context
end

#llmObject (readonly)

Returns the value of attribute llm.



14
15
16
# File 'lib/regent/engine/base.rb', line 14

def llm
  @llm
end

#max_iterationsObject (readonly)

Returns the value of attribute max_iterations.



14
15
16
# File 'lib/regent/engine/base.rb', line 14

def max_iterations
  @max_iterations
end

#sessionObject (readonly)

Returns the value of attribute session.



14
15
16
# File 'lib/regent/engine/base.rb', line 14

def session
  @session
end

#toolchainObject (readonly)

Returns the value of attribute toolchain.



14
15
16
# File 'lib/regent/engine/base.rb', line 14

def toolchain
  @toolchain
end