Description
In Foundry agents, the inconsistency between model_id and model_deployment_name is confusing. For example, if you don't provide the model_deployment_name argument to AzureAIClient it reports a ValueError when running an agent because model_id isn't set on the client object, even if it was set on the call to AzureAIClient.create_agent. model_id is accepted as a kwarg so you don't get a linter error.
AzureAIClient.create_agent takes model_id as a parameter instead of model_deployment_name.
Code Sample
Error Messages / Stack Traces
Package Versions
main
Python Version
No response
Additional Context
No response
Description
In Foundry agents, the inconsistency between
model_idandmodel_deployment_nameis confusing. For example, if you don't provide themodel_deployment_nameargument toAzureAIClientit reports aValueErrorwhen running an agent becausemodel_idisn't set on the client object, even if it was set on the call toAzureAIClient.create_agent.model_idis accepted as a kwarg so you don't get a linter error.AzureAIClient.create_agenttakesmodel_idas a parameter instead ofmodel_deployment_name.Code Sample
Error Messages / Stack Traces
Package Versions
main
Python Version
No response
Additional Context
No response