<h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>init</span><wbr></wbr><span><span>Request</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If not null, this request will be sent by <ahref="expect-one.html">bot</a> before returning value</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>error</span><wbr></wbr><span><span>Factory</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when user have sent incorrect data</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>cancel</span><wbr></wbr><span>Request</span><wbr></wbr><span><span>Factory</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when it is required to say user that chain of scenario has been cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>cancel</span><wbr></wbr><span><span>Trigger</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">When this trigger returns true, chain is cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span><span>filter</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">It is main param, which will be called on each update. When it return not null, result will be returned as is, but when it returns null, then will be called <ahref="expect-one.html">cancelTrigger</a> (if it will return true - <ahref="expect-one.html">cancelRequestFactory</a> will be called too), <ahref="expect-one.html">errorFactory</a> and then will be returned null</p></div></div></div></div></div></div></div></div></div></div></div>
<h2class="">Parameters</h2><divdata-togglable="Parameters"><divclass="platform-hinted WithExtraAttributes"data-platform-hinted="data-platform-hinted"data-togglable="Parameters"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divdata-togglable="Parameters"><divclass="table"data-togglable="Parameters"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>init</span><wbr></wbr><span><span>Request</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If not null, this request will be sent by bot before returning value</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>error</span><wbr></wbr><span><span>Factory</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when user have sent incorrect data</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>cancel</span><wbr></wbr><span>Request</span><wbr></wbr><span><span>Factory</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">If set, this factory will be used to produce requests in case when it is required to say user that chain of scenario has been cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span>cancel</span><wbr></wbr><span><span>Trigger</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">When this trigger returns true, chain is cancelled</p></div></div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue WithExtraAttributes"><divclass=""><spanclass="inline-flex"><span><span>filter</span></span></span></div><div><divclass="title"><divdata-togglable="Parameters"><pclass="paragraph">It is main param, which will be called on each update. When it return not null, result will be returned as is, but when it returns null, then will be called <ahref="expect-one.html">cancelTrigger</a> (if it will return true - <ahref="expect-one.html">cancelRequestFactory</a> will be called too), <ahref="expect-one.html">errorFactory</a> and then will be returned null</p></div></div></div></div></div></div></div></div></div></div></div>