module Riffer::Agent::StructuredOutput::Parser
Public Instance Methods
Source
# File lib/riffer/agent/structured_output/parser.rb, line 17 def extract(content) parsed = parse_object(content) return [content, parsed] if parsed outermost_object(content) end
Source
# File lib/riffer/agent/structured_output/parser.rb, line 11 def parse(content) extract(content)&.last end