Vibe.Budget (vibe v0.2.3)

Copy Markdown View Source

Small immutable budget struct for recursive/subagent work.

Summary

Types

t()

@type t() :: %Vibe.Budget{
  depth: term(),
  max_children_per_node: term(),
  max_depth: term(),
  max_total_agents: term(),
  max_wall_time_ms: term(),
  started_at: term()
}

Functions

allowed?(budget)

@spec allowed?(t()) :: boolean()

child(budget)

@spec child(t()) :: t()

elapsed(budget)

@spec elapsed(t()) :: non_neg_integer()

new(opts \\ [])

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