Hello Faizan, I tried several combinations but they all failed with an error.
1. I tried treating an Azure AI Foundry agent as an "assistant", but I got the error that says "API error: 400 Bad Request" by expecting an assistant ID starting with asst.
2. My agent name is "deployment-pf-gpt-5-nano" and setting provider ID in YAML as "azure:chat:deployment-pf-gpt-5-nano" created the correct URL endpoint, however I got the following response error about max_tokens:
"statusText": "Bad Request",
"response": "{\"error\":{\"message\":\"Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.\",\"type\":\"invalid_request_error\",\"param\":\"max_tokens\",\"code\":\"unsupported_parameter\"}}"