- Introduced new endpoints `/api/analyst/query/{trace_id}/sample` and `/api/analyst/escalate` for sampling query results and escalating issues to human analysts, respectively.
- Enhanced `AnalystAgent` to support sampling of SQL results based on trace ID and to handle escalation requests, improving user experience in error scenarios.
- Updated `analyst_schemas.py` to include `EscalateRequest` for structured escalation requests.
- Added corresponding frontend API calls and UI components to facilitate user interactions with the new features.
- Implemented unit tests to ensure the reliability of the new functionalities.
This update significantly enhances the analytical capabilities of the application, allowing users to retrieve detailed query samples and escalate issues effectively.
13 lines
524 B
PowerShell
13 lines
524 B
PowerShell
# 口径字典 + 问数模板种子(本机 MySQL jinrong_agent)
|
||
$ErrorActionPreference = "Stop"
|
||
$Root = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
||
$AgentDir = Join-Path $Root "scripts\agent"
|
||
|
||
Write-Host "Seeding analyst metric dict..."
|
||
Get-Content (Join-Path $AgentDir "seed-analyst-metric-dict.sql") -Raw | mysql -u root jinrong_agent
|
||
|
||
Write-Host "Seeding analyst query templates..."
|
||
Get-Content (Join-Path $AgentDir "seed-analyst-query-templates.sql") -Raw | mysql -u root jinrong_agent
|
||
|
||
Write-Host "Done."
|