Streaming event taxonomy and reducer. Stream events → final canonical response. Preserves event order in output parts.
Streaming event taxonomy and reducer. Stream events → final canonical response. Preserves event order in output parts.
(acc->response acc provider model)Convert an accumulator to a canonical Response map. A provider error event makes accumulation fail while retaining both the classified error and the response accumulated before the failure in ex-data.
Convert an accumulator to a canonical Response map. A provider error event makes accumulation fail while retaining both the classified error and the response accumulated before the failure in ex-data.
(citation-event url
&
{:keys [title snippet text-range source-id date last-updated
source provider-data]})Emit one citation. A URL is optional when the provider supplies another stable source identifier or provider-native metadata.
Emit one citation. A URL is optional when the provider supplies another stable source identifier or provider-native metadata.
(events->response events provider model)Convenience: reduce events and convert to response in one step.
Convenience: reduce events and convert to response in one step.
(reduce-event acc event)Reduce a single stream event into an accumulator.
Reduce a single stream event into an accumulator.
(reduce-events events)Reduce a sequence of stream events to an accumulator.
Reduce a sequence of stream events to an accumulator.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |