Skip to content

Commit

Permalink
Remove the old az-cli/az-ps agents
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw committed Nov 7, 2024
1 parent 2d3e221 commit f54ea96
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 2,431 deletions.
10 changes: 1 addition & 9 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Start-Build
[string] $Runtime = [NullString]::Value,

[Parameter()]
[ValidateSet('openai-gpt', 'az-agent', 'msaz', 'interpreter', 'ollama')]
[ValidateSet('openai-gpt', 'msaz', 'interpreter', 'ollama')]
[string[]] $AgentToInclude,

[Parameter()]
Expand Down Expand Up @@ -66,7 +66,6 @@ function Start-Build
$module_dir = Join-Path $shell_dir "AIShell.Integration"

$openai_agent_dir = Join-Path $agent_dir "AIShell.OpenAI.Agent"
$az_agent_dir = Join-Path $agent_dir "AIShell.Azure.Agent"
$msaz_dir = Join-Path $agent_dir "Microsoft.Azure.Agent"
$interpreter_agent_dir = Join-Path $agent_dir "AIShell.Interpreter.Agent"
$ollama_agent_dir = Join-Path $agent_dir "AIShell.Ollama.Agent"
Expand All @@ -77,7 +76,6 @@ function Start-Build
$module_out_dir = Join-Path $out_dir $config "module" "AIShell"

$openai_out_dir = Join-Path $app_out_dir "agents" "AIShell.OpenAI.Agent"
$az_out_dir = Join-Path $app_out_dir "agents" "AIShell.Azure.Agent"
$msaz_out_dir = Join-Path $app_out_dir "agents" "Microsoft.Azure.Agent"
$interpreter_out_dir = Join-Path $app_out_dir "agents" "AIShell.Interpreter.Agent"
$ollama_out_dir = Join-Path $app_out_dir "agents" "AIShell.Ollama.Agent"
Expand All @@ -99,12 +97,6 @@ function Start-Build
dotnet publish $openai_csproj -c $Configuration -o $openai_out_dir
}

if ($LASTEXITCODE -eq 0 -and $AgentToInclude -contains 'az-agent') {
Write-Host "`n[Build the az-ps/cli agents ...]`n" -ForegroundColor Green
$az_csproj = GetProjectFile $az_agent_dir
dotnet publish $az_csproj -c $Configuration -o $az_out_dir
}

if ($LASTEXITCODE -eq 0 -and $AgentToInclude -contains 'msaz') {
Write-Host "`n[Build the Azure agent ...]`n" -ForegroundColor Green
$msaz_csproj = GetProjectFile $msaz_dir
Expand Down
32 changes: 0 additions & 32 deletions shell/agents/AIShell.Azure.Agent/AIShell.Azure.Agent.csproj

This file was deleted.

267 changes: 0 additions & 267 deletions shell/agents/AIShell.Azure.Agent/AzCLI/AzCLIAgent.cs

This file was deleted.

Loading

0 comments on commit f54ea96

Please sign in to comment.