Jidoka.Operation.Source.Subagent (Jidoka v0.9.0)

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

Functions

Builds a bounded subagent operation source.

Builds a subagent source and raises if the settings are invalid.

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: nil | binary(),
  forward_context: forward_context(),
  metadata: map(),
  name: binary(),
  result: :text | :structured,
  timeout: pos_integer()
}

Functions

new(attrs)

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

Builds a bounded subagent operation source.

new!(attrs)

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

Builds a subagent source and raises if the settings are invalid.