mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-09-14 20:07:24 +00:00
Adds a detailed output of configuration properties upon successful loading. This enhancement provides immediate feedback to the user, confirming that the configuration file has been loaded correctly and displaying the available properties.
35 lines
1.2 KiB
PowerShell
35 lines
1.2 KiB
PowerShell
# Simple test script for PowerShell AI Agent
|
|
Write-Host "PowerShell AI Agent Test" -ForegroundColor Green
|
|
Write-Host "========================" -ForegroundColor Green
|
|
|
|
# Test basic functionality
|
|
Write-Host "Testing basic functionality..." -ForegroundColor Yellow
|
|
|
|
# Test configuration loading
|
|
$configPath = ".\config\agent-config.json"
|
|
if (Test-Path $configPath) {
|
|
Write-Host "✅ Configuration file exists" -ForegroundColor Green
|
|
$config = Get-Content $configPath | ConvertFrom-Json
|
|
Write-Host "✅ Configuration loaded successfully" -ForegroundColor Green
|
|
Write-Host " Configuration properties: $($config.PSObject.Properties.Name -join ', ')" -ForegroundColor Cyan
|
|
} else {
|
|
Write-Host "❌ Configuration file not found" -ForegroundColor Red
|
|
}
|
|
|
|
# Test memory system
|
|
$memoryPath = ".\data\memory.json"
|
|
if (Test-Path $memoryPath) {
|
|
Write-Host "✅ Memory file exists" -ForegroundColor Green
|
|
} else {
|
|
Write-Host "❌ Memory file not found" -ForegroundColor Red
|
|
}
|
|
|
|
# Test main script
|
|
$mainScript = ".\scripts\main.ps1"
|
|
if (Test-Path $mainScript) {
|
|
Write-Host "✅ Main script exists" -ForegroundColor Green
|
|
} else {
|
|
Write-Host "❌ Main script not found" -ForegroundColor Red
|
|
}
|
|
|
|
Write-Host "`nTest completed!" -ForegroundColor Green |