Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Jan 17, 2025
1 parent 7582a73 commit fc89ea4
Show file tree
Hide file tree
Showing 12 changed files with 125 additions and 17 deletions.
9 changes: 3 additions & 6 deletions docs/content/tools/_index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
title: Tools For Devs
title: MCP/run Toolbox
weight: 1
cascade:
type: docs
---

## AI Tools for Dev



## Model Context Protocol
2 changes: 1 addition & 1 deletion docs/content/tools/docs/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Tools Project Documentation
title: Documentation
---


6 changes: 0 additions & 6 deletions docs/content/tools/docs/quickstart.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/content/tools/examples/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: example prompts
---

* [Use curl to fetch your GitHub gists](curl)
* [call swagger api](swagger)
* [create an animaged gif using ffmpeg](ffmpeg)
23 changes: 23 additions & 0 deletions docs/content/tools/examples/curl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: curl
---

# Description

Fetch gists from your user from GitHub

# Prompt Code

```markdown
---
tools:
- name: curl
parameter-values:
user: slimslenderslacks
---

# prompt

Run the curl command, in silent mode, to fetch gists for user {{user}} from GitHub.
```

38 changes: 38 additions & 0 deletions docs/content/tools/examples/ffmpeg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: use ffmpeg
---

# Description

Use ffmpeg to convert an mp4 file to an animated gif.

Users must refer to the mp4 file using a relative path from the working directory they've given to the mcp
bridge server.

# Prompt Code

```markdown
---
tools:
- name: ffmpeg
description: run the ffmpeg command
parameters:
type: object
properties:
args:
description: arguments to pass to ffmpeg
type: array
items:
type: string
container:
image: linuxserver/ffmpeg:version-7.1-cli
command:
- "{{args|into}}"
---

# prompt

Use ffmpeg to convert the file UsingPuppeteer.mp4 into an animated gif file at 1 frame per second.
The output file should be named UsingPuppeteer.gif.
```

23 changes: 23 additions & 0 deletions docs/content/tools/examples/swagger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: call swagger api
---

# Description

Describe a two step process where we first grab a swagger.json file from the web and then use
that to make an api call.

# Prompt Code

```markdown
---
tools:
- name: curl
---

# prompt

Use curl to fetch the openai spec at https://fakerestapi.azurewebsites.net/swagger/v1/swagger.json
Then use curl to get all authors from the api.
```

3 changes: 0 additions & 3 deletions docs/content/tools/mcp.md

This file was deleted.

12 changes: 12 additions & 0 deletions docs/content/tools/quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Quick Start
weight: 1
---

{{% steps %}}

### Step 1

### second

{{% /steps %}}
4 changes: 4 additions & 0 deletions docs/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ menu:
url: "https://github.com/docker/labs-ai-tools-for-devs"
params:
icon: github
markup:
goldmark:
renderer:
unsafe: true
4 changes: 3 additions & 1 deletion prompts/examples/curl.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
model: claude-3-5-sonnet-20241022
tools:
- name: curl
parameter-values:
user: slimslenderslacks
---

# prompt

Run the curl command, in silent mode, to fetch gists for user slimslenderslacks from GitHub.
Run the curl command, in silent mode, to fetch gists for user {{user}} from GitHub.

11 changes: 11 additions & 0 deletions prompts/examples/swagger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
model: claude-3-5-sonnet-20241022
tools:
- name: curl
---

# prompt

Use curl to fetch the openai spec at https://fakerestapi.azurewebsites.net/swagger/v1/swagger.json
Then use curl to get all authors from the api.

0 comments on commit fc89ea4

Please sign in to comment.