Skip to content

Commit 915e01a

Browse files
Merge branch 'main' into dependabot/npm_and_yarn/ai/oracle-digital-assistant/oda-pro-styled/files/frontend/next-15.3.5
2 parents c96fffa + 178ba8e commit 915e01a

File tree

145 files changed

+17811
-1011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+17811
-1011
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ terraform.rc
3939
.DS_Store
4040

4141
#VSC files
42-
.vscode
42+
.vscode
43+
44+
# Exclude cached Python binary files
45+
*.pyc
46+
__pycache__
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# OCI Weather Assistant API
2+
3+
A FastAPI-based service that integrates with Oracle Cloud Infrastructure's Generative AI Agent and uses OpenWeather API to provide real-time weather forecasts. The agent invokes the `get_weather` tool automatically when weather-related questions are asked.
4+
5+
## Features
6+
7+
- FastAPI backend with async support
8+
- OCI Generative AI Agent integration
9+
- Weather tool using OpenWeather API
10+
- `.env` configuration for secrets
11+
12+
## Setup
13+
14+
1. Clone the repo & install dependencies:
15+
16+
```bash
17+
git clone https://github.com/your-username/oci-weather-assistant.git
18+
cd oci-weather-assistant
19+
pip install -r requirements.txt
20+
21+
## Create a .env file in the root directory:
22+
23+
OCI_AI_AGENT_ENDPOINT_ID=ocid1.generativeaiendpoint.oc1..example
24+
OCI_CONFIG_PROFILE=DEFAULT
25+
OCI_REGION=us-chicago-1
26+
OPENWEATHER_API_KEY=your_openweather_api_key
27+
28+
## Run the app
29+
30+
uvicorn main:app --reload --port 8000
31+
32+
## UI
33+
34+
To test the API via a simple UI, use the frontend from this repository:
35+
🔗 https://github.com/ralungei/oci-genai-agent-blackbelt
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
OCI_AI_AGENT_ENDPOINT_ID=ocid1.generativeaiendpoint.oc1..example
2+
OCI_CONFIG_PROFILE=DEFAULT
3+
OCI_REGION=us-chicago-1
4+
OPENWEATHER_API_KEY=your_openweather_api_key

0 commit comments

Comments
 (0)