From 72ae1a2fe5246e92f4743f9c9b2f4c87bdbb4755 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 11 Oct 2024 14:10:07 +0000 Subject: [PATCH] more docs --- README.md | 8 ++++++++ docs/src/content/docs/index.mdx | 6 ++++++ docs/src/content/docs/reference/scripts/system.mdx | 5 +++++ .../core/src/genaisrc/copilot_chat_participant.genai.mjs | 5 +++++ 4 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 57d5c59579..ef7dabacdc 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,14 @@ defAgent( ) ``` +then use it as a tool + +```js +script({ tools: "agent_git" }) + +$`What is the current branch?` +``` + --- ### 🔍 RAG Built-in diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx index 4f2b77f17c..3cb72a8977 100644 --- a/docs/src/content/docs/index.mdx +++ b/docs/src/content/docs/index.mdx @@ -154,6 +154,12 @@ defAgent( ) ``` +```js wrap +script({ tools: "agent_git" }) + +$`What is the current branch?` +``` + diff --git a/docs/src/content/docs/reference/scripts/system.mdx b/docs/src/content/docs/reference/scripts/system.mdx index 059ddcacc3..8dfafc7cc3 100644 --- a/docs/src/content/docs/reference/scripts/system.mdx +++ b/docs/src/content/docs/reference/scripts/system.mdx @@ -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 diff --git a/packages/core/src/genaisrc/copilot_chat_participant.genai.mjs b/packages/core/src/genaisrc/copilot_chat_participant.genai.mjs index ddd826e4f6..652309a261 100644 --- a/packages/core/src/genaisrc/copilot_chat_participant.genai.mjs +++ b/packages/core/src/genaisrc/copilot_chat_participant.genai.mjs @@ -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