Description:
azd ai agent invoke --local failed with internal server error:

In the local agent terminal, it shows the exception TaskContext object has no attribute metadata:

Steps to Reproduce:
- Run
azd ai agent init --manifest "https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/bring-your-own/responses/notetaking-agent/azure.yaml".
- Run
azd up.
- Run
azd ai agent run.
- From a second terminal, run
azd ai agent invoke --local --new-session "save a note - local smoke test".
Environment:
Expected Behavior:
Local invoke can succeed.
JeffreyCA and Rick Winter (@RickWinter) for notification.
Description:


azd ai agent invoke --localfailed with internal server error:In the local agent terminal, it shows the exception
TaskContext object has no attribute metadata:Steps to Reproduce:
azd ai agent init --manifest "https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/bring-your-own/responses/notetaking-agent/azure.yaml".azd up.azd ai agent run.azd ai agent invoke --local --new-session "save a note - local smoke test".Environment:
northcentralus.Expected Behavior:
Local invoke can succeed.
JeffreyCA and Rick Winter (@RickWinter) for notification.