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

Copy Markdown View Source

Operation source for bounded subagent delegation.

A subagent call runs one child agent turn and returns the child result to the parent. It does not change conversation ownership; handoffs own that separate routing concern.

Summary

Types

forward_context()

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

result_mode()

@type result_mode() :: :text | :structured

t()

@type t() :: %Jidoka.Operation.Source.Subagent{
  agent: module(),
  description: String.t() | nil,
  forward_context: forward_context(),
  metadata: map(),
  name: String.t(),
  result: result_mode(),
  timeout: pos_integer()
}

Functions

new(attrs)

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

new!(attrs)

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