-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathProgram.cs
More file actions
25 lines (19 loc) · 889 Bytes
/
Program.cs
File metadata and controls
25 lines (19 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Azure.Identity;
using Microsoft.Extensions.AI;
using Microsoft.Extensions.Configuration;
using OpenAI.Responses;
using Microsoft.Agents.AI.Workflows;
using Microsoft.Agents.AI.Workflows.Declarative;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
internal sealed class Program
{
public static async Task Main(string[] args)
{
// IConfiguration configuration = Application.InitializeConfig();
Uri foundryEndpoint = new("https://kinfey-ai-ignite-demo-resource.services.ai.azure.com/api/projects/kinfey-ai-ignite-demo");
WorkflowFactory workflowFactory = new("/Users/lokinfey/Desktop/AOAI/Foundry/FoundryV2/dotNET/decalareUI/YAML/workflowv2.yaml", foundryEndpoint);
WorkflowRunner runner = new();
await runner.ExecuteAsync(workflowFactory.CreateWorkflow, "junior developer");
}
}