From a5b385b9d241a8ef81131833a05628333a3df019 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 26 Nov 2024 12:17:44 -0600 Subject: [PATCH] inline bash --- docs/griptape-cloud/tools/run-tool.md | 7 ++++++- docs/griptape-cloud/tools/src/griptape_cloud_tool.sh | 6 ------ 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 docs/griptape-cloud/tools/src/griptape_cloud_tool.sh diff --git a/docs/griptape-cloud/tools/run-tool.md b/docs/griptape-cloud/tools/run-tool.md index 91d4b5274..75de1d0f6 100644 --- a/docs/griptape-cloud/tools/run-tool.md +++ b/docs/griptape-cloud/tools/run-tool.md @@ -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="" +export GT_CLOUD_TOOL_ID="" +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 diff --git a/docs/griptape-cloud/tools/src/griptape_cloud_tool.sh b/docs/griptape-cloud/tools/src/griptape_cloud_tool.sh deleted file mode 100644 index c9b1beb82..000000000 --- a/docs/griptape-cloud/tools/src/griptape_cloud_tool.sh +++ /dev/null @@ -1,6 +0,0 @@ -export GT_CLOUD_API_KEY="" -export GT_CLOUD_TOOL_ID="" -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}"