Method: Agentic::ExpectedAnswerFormat#initialize

Defined in:
lib/agentic/expected_answer_format.rb

#initialize(format:, sections:, length:) ⇒ ExpectedAnswerFormat

Initializes a new expected answer format

Parameters:

  • format (String)

    The format of the expected answer

  • sections (Array<String>)

    The sections expected in the answer

  • length (String)

    The expected length of the answer



19
20
21
22
23
# File 'lib/agentic/expected_answer_format.rb', line 19

def initialize(format:, sections:, length:)
  @format = format
  @sections = sections
  @length = length
end