Class: Omakase::Generation

Inherits:
Data
  • Object
show all
Defined in:
lib/omakase/generation.rb

Overview

A method the agent declares but does not implement: the prompt is its body, the schema is its return type, the strategy is how it gets there. A model named here overrides the class's, for this method alone.

Instance Attribute Summary collapse

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



7
8
9
# File 'lib/omakase/generation.rb', line 7

def model
  @model
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/omakase/generation.rb', line 7

def name
  @name
end

#promptObject (readonly)

Returns the value of attribute prompt

Returns:

  • (Object)

    the current value of prompt



7
8
9
# File 'lib/omakase/generation.rb', line 7

def prompt
  @prompt
end

#schemaObject (readonly)

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



7
8
9
# File 'lib/omakase/generation.rb', line 7

def schema
  @schema
end

#strategyObject (readonly)

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



7
8
9
# File 'lib/omakase/generation.rb', line 7

def strategy
  @strategy
end