feat: Increase agents max_iterations to 300
This commit is contained in:
@@ -5,7 +5,7 @@ from strix.llm.config import LLMConfig
|
||||
|
||||
|
||||
class StrixAgent(BaseAgent):
|
||||
max_iterations = 200
|
||||
max_iterations = 300
|
||||
|
||||
def __init__(self, config: dict[str, Any]):
|
||||
default_modules = []
|
||||
|
||||
@@ -46,7 +46,7 @@ class AgentMeta(type):
|
||||
|
||||
|
||||
class BaseAgent(metaclass=AgentMeta):
|
||||
max_iterations = 200
|
||||
max_iterations = 300
|
||||
agent_name: str = ""
|
||||
jinja_env: Environment
|
||||
default_llm_config: LLMConfig | None = None
|
||||
|
||||
@@ -19,7 +19,7 @@ class AgentState(BaseModel):
|
||||
|
||||
task: str = ""
|
||||
iteration: int = 0
|
||||
max_iterations: int = 200
|
||||
max_iterations: int = 300
|
||||
completed: bool = False
|
||||
stop_requested: bool = False
|
||||
waiting_for_input: bool = False
|
||||
|
||||
@@ -58,7 +58,7 @@ async def run_cli(args: Any) -> None: # noqa: PLR0915
|
||||
llm_config = LLMConfig()
|
||||
agent_config = {
|
||||
"llm_config": llm_config,
|
||||
"max_iterations": 200,
|
||||
"max_iterations": 300,
|
||||
"non_interactive": True,
|
||||
}
|
||||
|
||||
|
||||
@@ -323,7 +323,7 @@ class StrixTUIApp(App): # type: ignore[misc]
|
||||
|
||||
config = {
|
||||
"llm_config": llm_config,
|
||||
"max_iterations": 200,
|
||||
"max_iterations": 300,
|
||||
}
|
||||
|
||||
if args.target_type == "local_code" and "target_path" in args.target_dict:
|
||||
|
||||
@@ -228,7 +228,7 @@ def create_agent(
|
||||
from strix.agents.state import AgentState
|
||||
from strix.llm.config import LLMConfig
|
||||
|
||||
state = AgentState(task=task, agent_name=name, parent_id=parent_id, max_iterations=200)
|
||||
state = AgentState(task=task, agent_name=name, parent_id=parent_id, max_iterations=300)
|
||||
|
||||
llm_config = LLMConfig(prompt_modules=module_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user