Skip to content

Commit

Permalink
Fix script typo and improve description formatting in genai files
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 26, 2024
1 parent 4105cee commit e8ea9e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sample/genaisrc/fs.genai.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sc ript({
script({
model: "openai:gpt-3.5-turbo",
tools: ["fs"],
tests: {},
Expand Down
6 changes: 4 additions & 2 deletions packages/sample/genaisrc/gai.genai.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e8ea9e6

Please sign in to comment.