AppleIntents.Orchestration (apple_intents v0.1.0)

Copy Markdown View Source

Framework-agnostic delegation for intent handlers.

Summary

Functions

Run a delegated task through the configured orchestrator.

Run delegation configured on an intent handler module.

Types

task_ref()

@type task_ref() :: module() | String.t()

Functions

run(task, params, context, opts)

@spec run(task_ref(), map(), AppleIntents.Context.t(), keyword()) ::
  {:ok, map()} | {:error, AppleIntents.Error.t() | term()}

Run a delegated task through the configured orchestrator.

run_from_handler(handler, params, context, opts \\ [])

@spec run_from_handler(module(), map(), AppleIntents.Context.t(), keyword()) ::
  {:ok, map()} | {:error, AppleIntents.Error.t() | term()}

Run delegation configured on an intent handler module.