Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/lib/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -665,5 +665,16 @@
"Worth checking:": "Worth checking:",
"changed by chat": "changed by chat",
"New Case by Chat": "New Case by Chat",
"This suite has no judge model configured, so chat authoring has no default to fall back on -- pick one above.": "This suite has no judge model configured, so chat authoring has no default to fall back on -- pick one above."
"This suite has no judge model configured, so chat authoring has no default to fall back on -- pick one above.": "This suite has no judge model configured, so chat authoring has no default to fall back on -- pick one above.",
"Search tools": "Search tools",
"Pick a tool": "Pick a tool",
"Pick an agent": "Pick an agent",
"Type a name instead": "Type a name instead",
"Pick from the list": "Pick from the list",
"agent name or id": "agent name or id",
"Add an agent to the chain": "Add an agent to the chain",
"Move earlier": "Move earlier",
"Move later": "Move later",
"Remove agent from the chain": "Remove agent from the chain",
"No tools found for the agents on this case. Add the agent under Involved agents, or type the name.": "No tools found for the agents on this case. Add the agent under Involved agents, or type the name."
}
13 changes: 12 additions & 1 deletion src/lib/langs/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,5 +859,16 @@
"Worth checking:": "建议确认一下:",
"changed by chat": "对话改动过",
"New Case by Chat": "用对话新建",
"This suite has no judge model configured, so chat authoring has no default to fall back on -- pick one above.": "这个套件没有配置判官模型,对话出题也就没有默认可用的模型——请在上面选一个。"
"This suite has no judge model configured, so chat authoring has no default to fall back on -- pick one above.": "这个套件没有配置判官模型,对话出题也就没有默认可用的模型——请在上面选一个。",
"Search tools": "搜索工具",
"Pick a tool": "选择工具",
"Pick an agent": "选择 Agent",
"Type a name instead": "改为手动输入",
"Pick from the list": "改为从列表选择",
"agent name or id": "Agent 名称或 id",
"Add an agent to the chain": "往调用链里加一个 Agent",
"Move earlier": "前移",
"Move later": "后移",
"Remove agent from the chain": "从调用链里移除",
"No tools found for the agents on this case. Add the agent under Involved agents, or type the name.": "这条用例涉及的 Agent 没有查到可用工具。可以在\"涉及的 Agent\"里补上对应 Agent,或者手动输入工具名。"
}
48 changes: 48 additions & 0 deletions src/lib/styles/pages/_agent-test.scss
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,54 @@
color: var(--ats-tone);
}

/* ========================================================================
* Agent chain editor
*
* The expected list of an agentChain assertion. Chips rather than a text field
* because the order is the assertion in `ordered`/`exact` mode, and a chip can
* carry its own move and remove controls.
* ======================================================================== */

.ats-chain {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
margin-bottom: 0.375rem;
}

/* Inline control inside a chip: sized down to the chip's own line-height so a
chip with three of them stays the height of a plain badge. */
.ats-chip-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
height: 1rem;
padding: 0;
border: 0;
border-radius: 0.1875rem;
background: transparent;
color: inherit;
line-height: 1;

& i {
font-size: 0.875rem;
}

&:hover:not(:disabled) {
background-color: color-mix(in srgb, var(--ats-tone) 25%, transparent);
}

&:disabled {
opacity: 0.35;
}
}

.ats-chip-index {
opacity: 0.7;
font-variant-numeric: tabular-nums;
}

/* ========================================================================
* Alerts (replaces .alert.alert-danger / -warning / -info)
* ======================================================================== */
Expand Down
Loading