Skip to content

Create gcp-assistant.gpt #806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions examples/gcp-assistant.gpt
Original file line number Diff line number Diff line change
@@ -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