Skip to content

Commit

Permalink
inline bash
Browse files Browse the repository at this point in the history
  • Loading branch information
vachillo committed Dec 20, 2024
1 parent e0584a9 commit a5b385b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion docs/griptape-cloud/tools/run-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ The API route for Tool activities is in the form of `https://cloud.griptape.ai/a
To fetch the OpenAPI schema, the route is `https://cloud.griptape.ai/api/tools/{tool_id}/openapi`.

```bash
--8<-- "docs/griptape-cloud/tools/src/griptape_cloud_tool.sh"
export GT_CLOUD_API_KEY="<your API key here>"
export GT_CLOUD_TOOL_ID="<your tool ID here>"
export TOOL_ACTIVITY_URL="https://api.griptape.com/v1/tools/${GT_CLOUD_TOOL_ID}/activities/my_activity"

response=$(curl -X POST -H "Authorization: Bearer ${GT_CLOUD_API_KEY}" --json '{"my_key": "my_value"}' ${TOOL_ACTIVITY_URL})
echo "my_activity response: ${response}"
```

## Using the Griptape Framework
Expand Down
6 changes: 0 additions & 6 deletions docs/griptape-cloud/tools/src/griptape_cloud_tool.sh

This file was deleted.

0 comments on commit a5b385b

Please sign in to comment.