Context-safe limits for model-facing tool output.
Summary
Functions
@spec default_max_bytes() :: pos_integer()
@spec default_max_lines() :: pos_integer()
@spec limit_content( String.t(), keyword() ) :: %{ content: String.t(), omitted_lines: non_neg_integer(), omitted_bytes: non_neg_integer(), truncated?: boolean() }
@spec limit_text(String.t(), pos_integer() | keyword()) :: String.t()
@spec limit_text_result(String.t(), pos_integer() | keyword()) :: %{ text: String.t(), omitted_bytes: non_neg_integer(), limit_bytes: pos_integer(), truncated?: boolean() }
@spec limit_value(term(), pos_integer()) :: term()
@spec window( String.t(), keyword() ) :: Vibe.Tool.Output.Window.t()