Skip to content

Commit

Permalink
documentation update script
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 15, 2024
1 parent 78d1760 commit e2e010f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/sample/genaisrc/docs-up.genai.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ script({
description: "Generate a pull request description from the git diff",
temperature: 0.5,
tools: ["fs", "md"],
system: [
"system",
"system.diff",
"system.safety_harmful_content",
"system.safety_protected_material",
],
system: ["system", "system.files"],
})

const tip = env.vars.tip
const defaultBranch = await git.defaultBranch()
const branch = await git.branch()
if (branch === defaultBranch) cancel("you are already on the default branch")
Expand All @@ -37,6 +33,7 @@ $`You are an expert software developer and architect.
## Guidance
${tip || ""}
- the documentation markdown is located under docs/src/content/docs/**/*.md*
- do NOT try to call tools within the agents
- do NOT create new documentation pages
Expand Down

0 comments on commit e2e010f

Please sign in to comment.