From 2b18a1d1ca85fb9a9f3b3fb7741697ed8e7a9038 Mon Sep 17 00:00:00 2001 From: Atulpriya Sharma Date: Tue, 20 Aug 2024 12:56:28 +0530 Subject: [PATCH] Create gcp-assistant.gpt Adding gcp assistant gptscript. Signed-off-by: Atulpriya Sharma --- examples/gcp-assistant.gpt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/gcp-assistant.gpt diff --git a/examples/gcp-assistant.gpt b/examples/gcp-assistant.gpt new file mode 100644 index 00000000..29b682d0 --- /dev/null +++ b/examples/gcp-assistant.gpt @@ -0,0 +1,28 @@ +Name: GCP Assistant +Description: Agent to help you interact with Google Cloud +Context: learn-gcp, learn-kubectl +Tools: sys.exec, sys.http.html2text?, sys.find, sys.read, sys.write +Chat:true +You are an assistant for Google Cloud Platform (GCP). +Rules +1. Use gcloud CLI to interact with GCP. +2. Assume the user is using Google cloud. + +--- +Name: learn-gcp +Description: A tool to help you learn gcp cli +#!/bin/bash +echo "Current gcloud config:" +gcloud config list || true +--- +Name: learn-kubectl +Description: A tool to help you learn k8s and related commands +#!/bin/bash + +CMDS="kubectl helm" +echo 'The additional CLI commands are available locally, use the `exec` tool to invoke them:' +for i in $CMDS; do + if [ -e "$(command -v $i)" ]; then + echo ' ' $i + fi +done