Codex.Voice.SimpleWorkflow (Codex SDK v0.7.2)

Copy Markdown View Source

A simple workflow that uses a function to process transcriptions.

Example

workflow = SimpleWorkflow.new(fn text ->
  ["You said: #{text}"]
end)

pipeline = Pipeline.new(workflow: workflow)

Summary

Functions

Create a new simple workflow.

Types

handler()

@type handler() :: (String.t() -> Enumerable.t())

t()

@type t() :: %Codex.Voice.SimpleWorkflow{
  greeting: String.t() | nil,
  handler: handler()
}

Functions

new(handler, opts \\ [])

@spec new(
  handler(),
  keyword()
) :: t()

Create a new simple workflow.