Agent name as required for AzureAIClient (#2198)

This commit is contained in:
Dmytro Struk
2025-11-13 17:17:50 -08:00
committed by GitHub
Unverified
parent e516322918
commit 8458b4ade7
3 changed files with 23 additions and 8 deletions
@@ -22,6 +22,7 @@ async def main() -> None:
async with (
AzureCliCredential() as credential,
AzureAIClient(async_credential=credential).create_agent(
name="MyCodeInterpreterAgent",
instructions="You are a helpful assistant that can write and execute Python code to solve problems.",
tools=HostedCodeInterpreterTool(),
) as agent,