Skip to content

Commit

Permalink
doc: add multi-language guide for authoring and packaging tools
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Hale <[email protected]>
  • Loading branch information
njhale committed Nov 13, 2024
1 parent 13ce204 commit 1afb353
Show file tree
Hide file tree
Showing 9 changed files with 1,585 additions and 411 deletions.
8 changes: 0 additions & 8 deletions docs/docs/03-guides/01-first-tool.md

This file was deleted.

29 changes: 29 additions & 0 deletions docs/docs/03-guides/01-first-tool.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

import PythonHashToolReadme from '../../snippets/python-hash-tool-readme.md.mdx';
import NodeHashToolReadme from '../../snippets/node-hash-tool-readme.md.mdx';
import GoHashToolReadme from '../../snippets/go-hash-tool-readme.md.mdx';

# Writing your First Tool

While Otto8 ships with a robust library of built-in [Tools](../02-concepts/03-tools.md), building custom
Tools tailored to your ecosystem will supercharge your Agents.

The following guides will show you how to write and package custom Tools in Python, Node.js, and Go;
unleashing the full potential of your Agents by enabling them to integrate with any data source, service,
or platform with just a few lines of code.

<Tabs>
<TabItem value="python" label="Python" default>
<PythonHashToolReadme />
</TabItem>

<TabItem value="node" label="Node.js" default>
<NodeHashToolReadme />
</TabItem>

<TabItem value="go" label="Go" default>
<GoHashToolReadme />
</TabItem>
</Tabs>
4 changes: 4 additions & 0 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const config: Config = {
],
],

plugins: [
require.resolve('./src/plugins/fetch-snippets'),
],

themeConfig: {
// Replace with your project's social card
image: 'img/otto8-logo-blue-black-text.svg',
Expand Down
798 changes: 395 additions & 403 deletions docs/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@docusaurus/core": "3.6.1",
"@docusaurus/preset-classic": "3.6.1",
"@mdx-js/react": "^3.0.0",
"axios": "^1.7.7",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
Expand Down
Loading

0 comments on commit 1afb353

Please sign in to comment.