Skip to content

Commit

Permalink
make it better example
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 28, 2025
1 parent dcd4082 commit ebf386c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/sample/genaisrc/makeitbetter.genai.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
script({
files: "src/fib.ts",
model: "small",
tests: {
files: "src/fib.ts",
},
})
def("CODE", env.files)
$`Analyze and improve the code.`
defChatParticipant((ctx, messages) => {
if (messages.length < 6)
ctx.$`Make it better.
If you cannot make it better,
respond with DONE and the final version of the code.`
})

0 comments on commit ebf386c

Please sign in to comment.