When I selected Agent Editor or Workflow Editor, then typed my text, the terminal would print the error and the process would be over.
Traceback (most recent call last):
File "/home/yzp/anaconda3/envs/autoagent/bin/auto", line 8, in
sys.exit(cli())
File "/home/yzp/anaconda3/envs/autoagent/lib/python3.10/site-packages/click/core.py", line 1161, in call
return self.main(*args, **kwargs)
File "/home/yzp/anaconda3/envs/autoagent/lib/python3.10/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
File "/home/yzp/anaconda3/envs/autoagent/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/yzp/anaconda3/envs/autoagent/lib/python3.10/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/yzp/anaconda3/envs/autoagent/lib/python3.10/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/mnt/disk1/fjl/AutoAgent/autoagent/cli.py", line 227, in main
meta_agent(model, context_variables, False)
File "/mnt/disk1/fjl/AutoAgent/autoagent/cli_utils/metachain_meta_agent.py", line 216, in meta_agent
agent_form, output_xml_form, messages = agent_profiling(agent_former, client, messages, context_variables, requirements, debug)
File "/mnt/disk1/fjl/AutoAgent/autoagent/cli_utils/metachain_meta_agent.py", line 29, in agent_profiling
response = client.run(agent_former, messages, context_variables, debug=debug)
File "/mnt/disk1/fjl/AutoAgent/autoagent/core.py", line 428, in run
completion = self.get_chat_completion(
File "/mnt/disk1/fjl/AutoAgent/autoagent/core.py", line 176, in get_chat_completion
assert agent.tool_choice == "required", f"Non-function calling mode MUST use tool_choice = 'required' rather than {agent.tool_choice}"
AssertionError: Non-function calling mode MUST use tool_choice = 'required' rather than None
Do you figure it out? I have a same one。
I am getting the same error, if you have resolved kindly help.