Feat: Add agent-log-list page (#9076)

### What problem does this PR solve?

Fix: Add agent-log-list page And RAPTOR:Save directly after enabling,
incomplete form submission #3221

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-07-30 09:48:51 +08:00
committed by GitHub
parent 39ef2ffba9
commit 4f8e7ef763
11 changed files with 627 additions and 17 deletions

View File

@ -229,3 +229,38 @@ export interface ITraceData {
component_id: string;
trace: Array<Record<string, any>>;
}
export interface IAgentLogResponse {
id: string;
message: IAgentLogMessage[];
update_date: string;
create_date: string;
update_time: number;
create_time: number;
round: number;
thumb_up: number;
errors: string;
source: string;
user_id: string;
dsl: string;
reference: IReference;
}
export interface IAgentLogsResponse {
total: number;
sessions: IAgentLogResponse[];
}
export interface IAgentLogsRequest {
keywords?: string;
to_date?: string | Date;
from_date?: string | Date;
orderby?: string;
desc?: boolean;
page?: number;
page_size?: number;
}
export interface IAgentLogMessage {
content: string;
role: 'user' | 'assistant';
id: string;
}