chore: increase agent max iteration to 10-99

pull/19930/head
Novice 1 year ago
parent daf440597b
commit 498852f6d2

@ -63,7 +63,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):
self._instruction = self._fill_in_inputs_from_external_data_tools(instruction, inputs)
iteration_step = 1
max_iteration_steps = max(app_config.agent.max_iteration if app_config.agent else 5, 5) + 1
max_iteration_steps = min(max(app_config.agent.max_iteration, 10), 99) + 1
# convert tools into ModelRuntime Tool format
tool_instances, prompt_messages_tools = self._init_prompt_tools()

@ -48,7 +48,7 @@ class FunctionCallAgentRunner(BaseAgentRunner):
assert app_config.agent
iteration_step = 1
max_iteration_steps = max(app_config.agent.max_iteration, 5) + 1
max_iteration_steps = min(max(app_config.agent.max_iteration, 10), 99) + 1
# continue to run until there is not any tool call
function_call_state = True

Loading…
Cancel
Save