{v.description}
{t("Example: {example}", { example: v.example })}
{rich( t( 'When this Agent is terminated due to timeout or exhausted turns, the system injects this "wrap-up prompt" for one wrap-up round: It first writes back anything identified but not yet stored, then outputs a one-line summary (to avoid an abrupt ending). Leave empty to use the built-in default.', ), )}
{t("Check the MCP servers visible to this Agent.")}
{t("Check the Skills visible to this Agent.")}
{t("Check the built-in tools bound to this Agent.")}
{lines.map((l, idx) => (
{l.type === "del" ? "-" : l.type === "add" ? "+" : " "}
{l.text}
))}
);
}
// AgentTriggersTab manages a custom agent's P3 triggers: list + add + delete.
// Each trigger fires (schedule/finding found/goal met/task timeout/tool call, multi-select) → a new conversation runs
// in parallel with the base user message + auto context appended by the backend.
function AgentTriggersTab({ agentKey, agent }: { agentKey: string; agent?: Agent }) {
const [triggers, setTriggers] = React.useState{rich( t( 'Triggers make this custom Agent run automatically: each trigger starts a new conversation (visible on the Chat page). Multiple trigger conditions can be selected; the system automatically appends "why this fired + related task/finding/goal" to the base message you write.', ), )}
{/* post-trigger handling policy */}{runMode === "parallel" ? t( "Parallel: each trigger immediately starts its own concurrent session, no merging; triggers beyond the max concurrency queue for a free slot.", ) : mergeMode === "by_task" ? t( "Serial · merge by task: one run at a time per agent; queued events for the same task merge into one conversation.", ) : mergeMode === "all" ? t( "Serial · merge all: one run at a time per agent; when dequeuing, all currently queued triggers merge into one conversation.", ) : t("Serial · no merge: one run at a time per agent; each trigger gets its own conversation.")}