An Azure service that provides an integrated environment for bot development.
Hello cheng victor,
Welcome to Microsoft Q&A .Thank you for reaching out with details of your implementation
As asked for suggestions to upload document (.csv) to multi-agent workflow and the sub-agent and based on the provided code snippet review , here is what’s happening behind the hood –
- responses.create does not accept attachment. In Azure AI Foundry (Agents), attachments must be added when creating a message in the conversation, not when creating a response (run).
- Please try using conversations.messages.create to attach the files
While using responses.create
- The API does not include an attachment(s) parameter. It triggers the agent to act on the existing conversation state — it does not modify that state. So ,attachment = [attachments ] is invalid for this API.
- Since the snippet attaches the file during responses.create, the file would not exist in the conversation, meaning the sub-agent will not see it.
- The Code Interpreter tool can only access: o Files attached to a conversation message o Files already present in the thread context
Please refer the following:
- Use Code Interpreter with Microsoft Foundry agents - Microsoft Foundry | Microsoft Learn
- How to use Azure OpenAI Assistants Code Interpreter (classic) - Microsoft Foundry (classic) | Microsoft Learn
- Quotas and limits for Foundry Agent Service (classic) - Microsoft Foundry (classic) | Microsoft Learn
Please let me know if you have any questions.
Thank you!