Jidoka.Operation.Source.Handoff (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Operation source for conversation handoff ownership.

Handoff operations record that a target agent owns future turns for a conversation. The operation returns data to the current turn; routing future turns through that owner remains an application/harness concern.

Summary

Types

forward_context()

@type forward_context() ::
  :public
  | :none
  | {:only, [atom() | String.t()]}
  | {:except, [atom() | String.t()]}

t()

@type t() :: %Jidoka.Operation.Source.Handoff{
  agent: module(),
  description: String.t() | nil,
  forward_context: forward_context(),
  metadata: map(),
  name: String.t(),
  target: target()
}

target()

@type target() ::
  :auto | {:peer, String.t()} | {:peer, {:context, atom() | String.t()}}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(keyword() | map()) :: t()