This guide helps resolve common issues with the Agent Starter Pack.
For detailed information on authentication with Vertex AI, visit the official documentation.
Problem: Missing credentials error with Vertex AI.
Solution:
- Log in to Google Cloud:
gcloud auth login --update-adc
- Set the correct project:
gcloud config set project YOUR_PROJECT_ID gcloud auth application-default set-quota-project YOUR_PROJECT_ID
Problem: Operations fail because the Vertex AI API is not enabled in your project.
Solution:
-
Enable the Vertex AI API:
gcloud services enable aiplatform.googleapis.com
-
Verify the API is enabled:
gcloud services list --filter=aiplatform.googleapis.com
Problem: "Permission denied" errors with Google Cloud APIs.
Solution: Ensure your user or service account has the necessary IAM roles. For example, for Vertex AI, you often need roles/aiplatform.user
. Grant roles using the gcloud projects add-iam-policy-binding
command or the Cloud Console.
Problem: "Command not found" error after installation.
Solution:
- Verify installation:
pip list | grep agent-starter-pack
- Check PATH:
echo $PATH
- Reinstall if needed:
pip install --user agent-starter-pack
- For pipx:
pipx ensurepath source ~/.bashrc # or ~/.zshrc
Problem: agent-starter-pack create
fails.
Solution:
- Check Error Messages: Examine output for clues.
- Write Permissions: Ensure write access to the directory.
- Project Name: Use lowercase letters, numbers and hyphens only.
- Debug Mode: Consider using debug mode to get more detailed error information:
agent-starter-pack create my-project-name --debug
Consider leveraging the public product documentation
If issues persist:
-
Check GitHub Issues: Search for existing Github issues in the
agent-starter-pack
Github repository. -
File a New Issue: Provide:
- Problem description.
- Steps to reproduce.
- Error messages (preferably run with
--debug
flag for detailed logs). - Environment: OS, Python version,
agent-starter-pack
version, installation method, shell.