diff --git a/packages/sample/genaisrc/fs.genai.mjs b/packages/sample/genaisrc/fs.genai.mjs index 7a19110e59..5bf415a1ba 100644 --- a/packages/sample/genaisrc/fs.genai.mjs +++ b/packages/sample/genaisrc/fs.genai.mjs @@ -1,4 +1,4 @@ -sc ript({ +script({ model: "openai:gpt-3.5-turbo", tools: ["fs"], tests: {}, diff --git a/packages/sample/genaisrc/gai.genai.mts b/packages/sample/genaisrc/gai.genai.mts index 77f65cc669..8dbee654f6 100644 --- a/packages/sample/genaisrc/gai.genai.mts +++ b/packages/sample/genaisrc/gai.genai.mts @@ -4,7 +4,8 @@ import { createPatch } from "diff" script({ title: "GitHub Action Investigator", - description: "Analyze GitHub Action runs to find the root cause of a failure", + description: + "Analyze GitHub Action runs to find the root cause of a failure", parameters: { workflow: { type: "string" }, failure_run_id: { type: "number" }, @@ -94,7 +95,8 @@ Analyze the diff in LOG_DIFF and provide a summary of the root cause of the fail If you cannot find the root cause, stop. -Generate a diff with suggested fixes. Use a diff format.` +Generate a diff with suggested fixes. Use a diff format. +- If you cannot locate the error, do not generate a diff.` writeText( `## Investigator report