Fix tool_call_id error by adding metadata to tool_result and using it in ToolMessage

Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-19 13:31:43 +00:00
parent f6055b290a
commit 2b9cda15e4
2 changed files with 9 additions and 2 deletions

View File

@@ -83,7 +83,10 @@ class MoviePilotTool(BaseTool, metaclass=ABCMeta):
session_id=self._session_id,
user_id=self._user_id,
role="tool_result",
content=formated_result
content=formated_result,
metadata={
"call_id": self.__class__.__name__
}
)
return result