Skip to content

Commit

Permalink
bug fix: fix a bug was caused by slot unison
Browse files Browse the repository at this point in the history
  • Loading branch information
Maplemx committed Apr 6, 2024
1 parent 1f9d275 commit 48b80f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/agent_component/Tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def _prefix(self):
self.agent.request.request_runtime_ctx.remove("prompt.instruct")
self.agent.request.request_runtime_ctx.remove("prompt.output")
return {
"information": {
"info": {
"function_must_call": {
"tool_name": self.must_call_tool_info["tool_name"],
"desc": self.must_call_tool_info["desc"],
Expand All @@ -150,8 +150,8 @@ async def _prefix(self):
tool_results = await self.call_plan_func(self)
if tool_results and len(tool_results.keys()) > 0:
return {
"information": tool_results,
"instruction": ["Use format [keywords](url) to mark internet-source information in {OUTPUT}"]
"info": tool_results,
"instruct": ["Use format [keywords](url) to mark internet-source information in {OUTPUT}"]
}
else:
return None
Expand Down

0 comments on commit 48b80f8

Please sign in to comment.