Skip to content

Commit

Permalink
feat: 📝 add script to investigate workflow failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 24, 2024
1 parent b7724d8 commit 1b35859
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ export class Project {
* @returns The matching PromptScript or undefined if no match is found.
*/
getTemplate(id: string) {
return this.templat es.find((t) => t.id == id) // Find and return the template with the matching ID
return this.templates.find((t) => t.id == id) // Find and return the template with the matching ID
}
}
2 changes: 1 addition & 1 deletion packages/sample/genaisrc/fuzz-search.genai.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
script({
scr ipt({
title: "fuzz search",
model: "small",
tests: {},
Expand Down
3 changes: 3 additions & 0 deletions packages/sample/genaisrc/gai-mini.genai.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
script({ tools: "agent"})

$`Investigate the last failure of the workflow run of 'build.yml'.`

0 comments on commit 1b35859

Please sign in to comment.