Separate agent tuning from model setup

This commit is contained in:
2026-07-07 13:31:20 +08:00
parent dada4aafcd
commit da262f4596
10 changed files with 518 additions and 76 deletions

View File

@@ -241,18 +241,128 @@ textarea {
width: 100%;
}
.agent-workbench {
display: grid;
grid-template-columns: minmax(520px, 1fr) minmax(360px, 420px);
gap: 18px;
align-items: start;
}
.agent-config-panel,
.agent-preview-panel {
padding: 18px;
border: 1px solid #dfe8e5;
border-radius: 8px;
background: #ffffff;
}
.agent-config-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px 14px;
}
.agent-config-panel .el-select,
.agent-config-panel .el-input-number,
.agent-config-panel .el-input {
width: 100%;
}
.agent-preview-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 12px;
}
.agent-preview-head h3 {
margin: 0;
font-size: 17px;
}
.agent-preview-head span {
overflow: hidden;
color: #667a73;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.agent-preview-chat {
height: 560px;
overflow: auto;
display: flex;
flex-direction: column;
gap: 10px;
padding-right: 4px;
}
.agent-preview-message {
max-width: 92%;
padding: 10px 12px;
border: 1px solid #dfe8e5;
border-radius: 8px;
background: #f8fbfa;
}
.agent-preview-message.user {
align-self: flex-end;
border-color: #cde7df;
background: #e9f5f1;
}
.agent-preview-message strong {
display: block;
margin-bottom: 6px;
color: #0f735d;
font-size: 12px;
}
.agent-preview-message pre {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
font-family: inherit;
line-height: 1.6;
}
.actions {
margin-top: 12px;
}
.record-filter {
display: grid;
grid-template-columns: minmax(260px, 1.4fr) 140px 150px 360px 72px 72px 72px;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
align-items: flex-start;
margin-bottom: 14px;
}
.record-filter > .el-input {
width: 280px;
}
.record-filter > .el-input-number {
width: 140px;
}
.record-filter > .el-select {
width: 150px;
}
.record-date-range {
width: 580px !important;
max-width: 100%;
flex: 0 0 580px;
}
.record-filter-actions {
display: flex;
gap: 8px;
align-items: center;
}
.chat-summary {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));