Module: Inquirex::LLM::DSL::FlowBuilderExtension
- Defined in:
- lib/inquirex/llm/dsl/flow_builder.rb
Overview
Mixin that adds LLM verb methods to Inquirex::DSL::FlowBuilder.
Included automatically when require "inquirex-llm" is called,
so that Inquirex.define gains extract (and its clarify alias)
without needing a separate entry point.
All core verbs (ask, say, header, btw, warning, confirm) remain unchanged — LLM verbs are purely additive.
Instance Method Summary collapse
-
#extract(id) ⇒ Object
(also: #clarify)
Defines an LLM extraction step: takes free-text input and produces structured data matching the declared schema.
Instance Method Details
#extract(id) ⇒ Object Also known as: clarify
Defines an LLM extraction step: takes free-text input and produces structured data matching the declared schema.
18 19 20 |
# File 'lib/inquirex/llm/dsl/flow_builder.rb', line 18 def extract(id, &) add_llm_step(id, :extract, &) end |