AI-powered NSE stock analysis agent with interactive CLI and web interface
Agent generated with googleCloudPlatform/agent-starter-pack version 0.23.0
This project is organized as follows:
investor-paradise/
├── investor_agent/ # Core application code
│ ├── agent.py # Main agent logic
│ ├── agent_engine_app.py # Agent Engine application logic
│ └── app_utils/ # App utilities and helpers
├── .cloudbuild/ # CI/CD pipeline configurations for Google Cloud Build
├── deployment/ # Infrastructure and deployment scripts
├── notebooks/ # Jupyter notebooks for prototyping and evaluation
├── tests/ # Unit, integration, and load tests
├── Makefile # Makefile for common commands
├── GEMINI.md # AI-assisted development guide
└── pyproject.toml # Project dependencies and configuration💡 Tip: Use Gemini CLI for AI-assisted development - project context is pre-configured in
GEMINI.md.
Before you begin, ensure you have:
- uv: Python package manager (used for all dependency management in this project) - Install (add packages with
uv add <package>) - Google Cloud SDK: For GCP services - Install
- Terraform: For infrastructure deployment - Install
- make: Build automation tool - Install (pre-installed on most Unix-based systems)
Install required packages and launch the local development environment:
make install && make playground📊 Observability Note: Agent telemetry (Cloud Trace) is always enabled. Prompt-response logging (GCS, BigQuery, Cloud Logging) is disabled locally, enabled by default in deployed environments (metadata only - no prompts/responses). See Monitoring and Observability for details.
| Command | Description |
|---|---|
make install |
Install all required dependencies using uv |
make playground |
Launch local development environment for testing agent |
make deploy |
Deploy agent to Agent Engine |
make register-gemini-enterprise |
Register deployed agent to Gemini Enterprise (docs) |
make test |
Run unit and integration tests |
make lint |
Run code quality checks (codespell, ruff, mypy) |
make setup-dev-env |
Set up development environment resources using Terraform |
For full command options and usage, refer to the Makefile.
This template follows a "bring your own agent" approach - you focus on your business logic, and the template handles everything else (UI, infrastructure, deployment, monitoring).
- Prototype: Build your Generative AI Agent using the intro notebooks in
notebooks/for guidance. Use Vertex AI Evaluation to assess performance. - Integrate: Import your agent into the app by editing
investor_agent/agent.py. - Test: Explore your agent functionality using the local playground with
make playground. The playground automatically reloads your agent on code changes. - Deploy: Set up and initiate the CI/CD pipelines, customizing tests as necessary. Refer to the deployment section for comprehensive instructions. For streamlined infrastructure deployment, simply run
uvx agent-starter-pack setup-cicd. Check out theagent-starter-pack setup-cicdCLI command. Currently supports GitHub with both Google Cloud Build and GitHub Actions as CI/CD runners. - Monitor: Track performance and gather insights using BigQuery telemetry data, Cloud Logging, and Cloud Trace to iterate on your application.
The project includes a GEMINI.md file that provides context for AI tools like Gemini CLI when asking questions about your template.
Note: For a streamlined one-command deployment of the entire CI/CD pipeline and infrastructure using Terraform, you can use the
agent-starter-pack setup-cicdCLI command. Currently supports GitHub with both Google Cloud Build and GitHub Actions as CI/CD runners.
You can test deployment towards a Dev Environment using the following command:
gcloud config set project <your-dev-project-id>
make deployThe repository includes a Terraform configuration for the setup of the Dev Google Cloud project. See deployment/README.md for instructions.
The repository includes a Terraform configuration for the setup of a production Google Cloud project. Refer to deployment/README.md for detailed instructions on how to deploy the infrastructure and application.
The application provides two levels of observability:
- OpenTelemetry traces and spans exported to Cloud Trace
- Tracks agent execution, latency, and system metrics
- GenAI instrumentation captures LLM interactions (tokens, model, timing)
- Exported to Google Cloud Storage (JSONL), BigQuery (external tables), and Cloud Logging (dedicated bucket)
| Environment | Prompt-Response Logging |
|---|---|
Local Development (make playground) |
❌ Disabled by default |
| Deployed Environments (via Terraform) | ✅ Enabled by default (privacy-preserving: metadata only, no prompts/responses) |
To enable locally: Set LOGS_BUCKET_NAME and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT.
To disable in deployments: Edit Terraform config to set OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=false.
See the observability guide for detailed instructions, example queries, and visualization options.