Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 11, 2024
1 parent f88f3b0 commit 72ae1a2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ defAgent(
)
```

then use it as a tool

```js
script({ tools: "agent_git" })

$`What is the current branch?`
```

---

### 🔍 RAG Built-in
Expand Down
6 changes: 6 additions & 0 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ defAgent(
)
```

```js wrap
script({ tools: "agent_git" })

$`What is the current branch?`
```

</Card>

<Card title="Reuse and Share Scripts" icon="star">
Expand Down
5 changes: 5 additions & 0 deletions docs/src/content/docs/reference/scripts/system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ $`## task
- make a plan to answer the QUESTION step by step
- answer the QUESTION
## output
- The final output will be inserted into the Visual Studio Code Copilot Chat window.
- do NOT include the plan in the output
## guidance:
- use the agent tools to help you
- do NOT be lazy, always finish the tasks
Expand Down
5 changes: 5 additions & 0 deletions packages/core/src/genaisrc/copilot_chat_participant.genai.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ $`## task
- make a plan to answer the QUESTION step by step
- answer the QUESTION
## output
- The final output will be inserted into the Visual Studio Code Copilot Chat window.
- do NOT include the plan in the output
## guidance:
- use the agent tools to help you
- do NOT be lazy, always finish the tasks
Expand Down

0 comments on commit 72ae1a2

Please sign in to comment.