Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adalflow/adalflow/components/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def create_default_planner(
cache_path: Optional[str] = None,
use_cache: Optional[bool] = False,
# default agent parameters
max_steps: Optional[int] = 10,
max_steps: Optional[int] = 3,
is_thinking_model: Optional[bool] = False,
answer_data_type: Optional[Type[T]] = str,
**kwargs,
Expand Down Expand Up @@ -259,8 +259,8 @@ def __init__(
use_cache: Optional[bool] = True,
# default agent parameters
answer_data_type: Optional[Type[T]] = str, # the data type of the final answer
max_steps: Optional[int] = 10,
is_thinking_model: Optional[bool] = False, # when thinking model turned on, it disables the CoT field in the output
max_steps: Optional[int] = DEFAULT_MAX_STEPS,
is_thinking_model: Optional[bool] = False, # support thinking model in agent
# for fully customize the agent
tool_manager: Optional[
ToolManager
Expand Down
9 changes: 5 additions & 4 deletions adalflow/adalflow/components/agent/react.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def _run_one_step(
)

log.debug(
f"Running step {step} with prompt: {self.planner.prompt(**prompt_kwargs)}"
f"Running step {step} with prompt: {self.planner.get_prompt(**prompt_kwargs)}"
)
try:

Expand Down Expand Up @@ -682,7 +682,8 @@ def _get_answer(
step_history=step_history,
id=last_step.data_id,
react_agent_task_desc=self.planner.prompt_kwargs[
"react_agent_task_desc"
# "react_agent_task_desc"
"task_desc"
],
)

Expand Down Expand Up @@ -720,7 +721,7 @@ def _is_step_output_last_step(self, step_output: StepOutput) -> bool:
def bicall(
self,
input: str, # open up to the external
promt_kwargs: Optional[Dict] = {},
prompt_kwargs: Optional[Dict] = {},
model_kwargs: Optional[Dict] = {},
id: Optional[str] = None,
) -> Union["Parameter", ReActOutput]:
Expand All @@ -729,7 +730,7 @@ def bicall(

# set up the prompts
prompt_kwargs = {
**promt_kwargs,
**prompt_kwargs,
"input_str": input,
}

Expand Down
Loading
Loading