Jidoka.Turn.Plan (Jidoka v0.9.0)

Copy Markdown View Source

Executable data compiled from Jidoka.Agent.Spec.

Summary

Functions

Compiles an agent specification into executable turn data.

Compiles an agent specification and raises if it is invalid.

Returns the Zoi schema for an executable turn plan.

Types

input()

@type input() :: module() | Jidoka.Agent.Spec.t() | t() | keyword() | map()

t()

@type t() :: %Jidoka.Turn.Plan{
  max_model_turns: integer(),
  metadata: map(),
  phases: [
    (((:assemble_prompt | :plan_model_effect) | :apply_model_result)
     | :plan_operation_effects)
    | :apply_operation_results
  ],
  spec: term(),
  timeout_ms: integer(),
  workflow_profile:
    ((:chat | :tool_loop) | :structured_result) | :controlled_tool_loop
}

Functions

new(spec)

@spec new(Jidoka.Agent.Spec.t()) :: {:ok, t()} | {:error, term()}

Compiles an agent specification into executable turn data.

new!(spec)

@spec new!(Jidoka.Agent.Spec.t()) :: t()

Compiles an agent specification and raises if it is invalid.

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for an executable turn plan.