Skip to content

Commit

Permalink
Merge pull request #3144 from continuedev/nate/tools-docs
Browse files Browse the repository at this point in the history
Nate/tools docs
  • Loading branch information
sestinj authored Dec 4, 2024
2 parents 06bc5a5 + d8936e7 commit fa86005
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main

paths:
- "extensions/vscode/**"
- "core/**"
- "gui/**"

jobs:
tsc-check:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions docs/docs/chat/how-to-customize.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ There are a number of different ways to customize Chat
- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.md)
- You can configure [`@Docs`](../customize/deep-dives/docs.md)
- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.md)
- You can configure and create custom [tools](../customize/tools.md)
33 changes: 33 additions & 0 deletions docs/docs/customize/tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Tools
description: Tool use and customization
keywords: [tool, use, function calling, claude, automatic]
---

Tools allow Continue to take action in your IDE and beyond (when you give permission). Currently, they are only supported with [Anthropic](./model-providers/top-level/anthropic.md). To use tools, click on the icon in the input toolbar like below.

![tools](/img/tool-use-example.png)

To let you balance speed and safety, each tool can be set to 1 of 3 modes:

- `Automatic`: When the LLM requests to use the tool, Continue will automatically call it and send the response to the LLM.
- `Allowed`: When the LLM requests to use the tool, Continue will first give you the opportunity to "Cancel" or "Continue" with the tool.
- `Disabled`: The LLM will not know about or be able to use the tool.

### Custom tools

Currently custom tools can be configured using the [Model Context Protocol](https://modelcontextprotocol.io/introduction), a standard proposed by Anthropic to unify prompts, context, and tool use. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then configure your `config.json` like this:

```json title="~/.continue/config.json"
{
"experimental": {
"modelContextProtocolServer": {
"transport": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
}
}
}
}
```
1 change: 1 addition & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const sidebars = {
},
"customize/context-providers",
"customize/slash-commands",
"customize/tools",
"customize/development-data",
{
type: "category",
Expand Down
Binary file added docs/static/img/tool-use-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fa86005

Please sign in to comment.