АРЧ - Добавить поддержку агентных смысловых прогонов в автопрогоны и правило AGENT в AGENTS.md
This commit is contained in:
+14
-4
@@ -183,7 +183,13 @@ function readAutoGenHistory() {
|
||||
: null,
|
||||
source_session_id: toStringSafe(toRecord(item.context)?.source_session_id),
|
||||
saved_session_file: toStringSafe(toRecord(item.context)?.saved_session_file),
|
||||
saved_case_set_kind: toStringSafe(toRecord(item.context)?.saved_case_set_kind)
|
||||
saved_case_set_kind: toStringSafe(toRecord(item.context)?.saved_case_set_kind),
|
||||
agent_run: toBooleanSafe(toRecord(item.context)?.agent_run),
|
||||
agent_focus: toStringSafe(toRecord(item.context)?.agent_focus)
|
||||
? repairAutogenMojibake(String(toRecord(item.context)?.agent_focus))
|
||||
: null,
|
||||
architecture_phase: toStringSafe(toRecord(item.context)?.architecture_phase),
|
||||
source_spec_file: toStringSafe(toRecord(item.context)?.source_spec_file)
|
||||
}
|
||||
: null
|
||||
}))
|
||||
@@ -1486,7 +1492,7 @@ function buildSavedSessionCaseSetPayload(input) {
|
||||
? [
|
||||
{
|
||||
case_id: caseId,
|
||||
scenario_tag: "saved_user_sessions",
|
||||
scenario_tag: toStringSafe(input.scenarioTag) ?? "saved_user_sessions",
|
||||
title: input.title,
|
||||
question_type: turns.length > 1 ? "followup" : "direct",
|
||||
broadness_level: "medium",
|
||||
@@ -1515,7 +1521,10 @@ function rewriteAutoGenCaseSetFile(record) {
|
||||
? buildSavedSessionCaseSetPayload({
|
||||
generationId: record.generation_id,
|
||||
title: record.title,
|
||||
questions: record.questions
|
||||
questions: record.questions,
|
||||
scenarioTag: record.context?.saved_case_set_kind === "agent_semantic_scenario"
|
||||
? "agent_saved_user_sessions"
|
||||
: "saved_user_sessions"
|
||||
})
|
||||
: buildAutogenCaseSetPayload({
|
||||
generationId: record.generation_id,
|
||||
@@ -2064,7 +2073,8 @@ function buildAutoRunsRouter(services, openaiClient = new openaiResponsesClient_
|
||||
writeJsonFile(caseSetPath, buildSavedSessionCaseSetPayload({
|
||||
generationId,
|
||||
title,
|
||||
questions
|
||||
questions,
|
||||
scenarioTag: "saved_user_sessions"
|
||||
}));
|
||||
const snapshotFile = writeSavedAssistantSessionSnapshot({
|
||||
generationId,
|
||||
|
||||
Reference in New Issue
Block a user