From dee147c50781010a789b94cc94370fa0d39af930 Mon Sep 17 00:00:00 2001 From: mmporong Date: Thu, 29 Oct 2026 11:02:06 +0900 Subject: [PATCH] docs: fix iterative_planner decorator docstring arguments The docstring listed use_history, human_input and plan_type, which iterative_planner does not accept, and did not list api_key. Values of plan_iterations of 0 or less (including the default -1) mean no limit. --- src/fast_agent/core/direct_decorators.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fast_agent/core/direct_decorators.py b/src/fast_agent/core/direct_decorators.py index 109d20767..e29732a10 100644 --- a/src/fast_agent/core/direct_decorators.py +++ b/src/fast_agent/core/direct_decorators.py @@ -717,12 +717,10 @@ def iterative_planner( agents: List of agent names this orchestrator can use instruction: Base instruction for the orchestrator model: Model specification string - use_history: Whether to maintain conversation history request_params: Additional request parameters for the LLM - human_input: Whether to enable human input capabilities - plan_type: Planning approach - "full" or "iterative" - plan_iterations: Maximum number of planning iterations (0 for unlimited) + plan_iterations: Maximum number of planning iterations (0 or less for unlimited) default: Whether to mark this as the default agent + api_key: Optional API key for the LLM provider Returns: A decorator that registers the orchestrator with proper type annotations