You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workflow Samples: advanced multi-agent patterns and workflow orchestration
Quickstart
Basic Agent - .NET
usingSystem;usingAzure.AI.OpenAI;usingAzure.Identity;usingMicrosoft.Agents.AI;varendpoint=Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT")!;vardeploymentName=Environment.GetEnvironmentVariable("AZURE_OPENAI_DEPLOYMENT_NAME")!;varagent=newAzureOpenAIClient(newUri(endpoint),newAzureCliCredential()).GetOpenAIResponseClient(deploymentName).CreateAIAgent(name:"HaikuBot",instructions:"You are an upbeat assistant that writes beautifully.");Console.WriteLine(awaitagent.RunAsync("Write a haiku about Microsoft Agent Framework."));