#Changing modeldeployment adhoc to a persistent agent in foundry

3 messages · Page 1 of 1 (latest)

hot crown
#

I have created a project and an agent in Microsoft Foundry Preview. The client application (c#) should be able to swap modeldeployment adhoc without saving the agent. Is that possible?
Thanks!

proven hamlet
#

Hi @hot crown Unfortunatley no, you can’t ad‑hoc swap the model deployment on a saved Microsoft Foundry Agent.

In Foundry Agent Service, the model deployment is part of the persisted agent definition. Agents are versioned assets for governance and auditability, so the model can’t be overridden per request without creating a new agent version.

Things you can consider:
Use a client‑side agent (C# / Agent Framework):
Don’t create a persisted Foundry agent. Call the model directly and choose the deployment per request. This gives full runtime control.

Create one Foundry agent per model deployment and select the agent ID at runtime.

So, Persisted Foundry agents have fixed models by design. Dynamic model swapping requires client‑side orchestration, not saved agents. Hope this helps.

hot crown
#

Hi Lee, thanks for a quick and useful answer 🙂 Any guesstimates when Microsoft Foundry will be GA?