In
|
result=ExternalToolTextResultForLlm( |
, an ExternalToolTextResultForLlm is created to be sent to HandlePendingToolCallRequest. However, the
binary_results_for_llm attribute from
tool_result is not copied over, but only the text result.
I believe this could be the reason why the agent I am building is unable to process image results of tools (stating that it cannot view the image, while directly sending an image as a blob attachment works fine).
In
copilot-sdk/python/copilot/session.py
Line 1649 in 1600b57
binary_results_for_llmattribute fromtool_resultis not copied over, but only the text result.I believe this could be the reason why the agent I am building is unable to process image results of tools (stating that it cannot view the image, while directly sending an image as a blob attachment works fine).