3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-16 01:16:39 +00:00
z3/genaisrc/gai.genai.mts
Nikolaj Bjorner 9eb6f97e6b fix build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2024-10-11 15:18:36 -07:00

25 lines
888 B
TypeScript

script({
tools: ["agent_fs", "agent_git", "agent_github"],
parameters: {
workflow: { type: "string" }, // Workflow name
failure_run_id: { type: "number" }, // ID of the failed run
branch: { type: "string" }, // Branch name
},
model: "azure:gpt-4o",
maxTokens: 2000
})
const {
workflow = "cross-build.yml",
failure_run_id = "11299772255",
branch = await git.branch(),
} = env.vars
$`Investigate the status of the ${workflow} workflow and identify the root cause of the failure of run ${failure_run_id} in branch ${branch}.
- Correlate the failure with the latest commit.
- Do only consider the branch ${branch} in the analysis.
- Compare the source code between the failed run commit and the last successful run commit before that run.
In your report, include html links to the relevant runs, commits, pull requests or issues.
`