Fountain.Run (fountain_sdk v0.1.0)

Copy Markdown View Source

A running turn. Work starts immediately and events are broadcast to every consumer.

The run server is owned by the process that created the handle and is cleaned up when that process exits. Pass the handle to consumers while its owner remains alive: a stream still open when the owner exits raises a %Fountain.Error{kind: :connection} rather than blocking.

Summary

Functions

answer(run, request_id, option_id)

await(run)

Waits for the completed turn.

await!(run)

cancel(run)

conversation(run)

conversation_id(run)

cursor(run)

interrupt(run)

new(http, plan, opts \\ [])

stream(run)

Streams atom-keyed run events; multiple consumers receive the same underlying run.

terminate(run)

text_stream(run)

url(run)