Skip to content

Commit 6a0a2d0

Browse files
Merge branch 'main' into dependabot/npm_and_yarn/ai/oracle-digital-assistant/oda-pro-styled/files/backend/multi-1083d179d6
2 parents d95ea1e + b5bb0d3 commit 6a0a2d0

File tree

135 files changed

+17347
-1070
lines changed

Some content is hidden

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

135 files changed

+17347
-1070
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.

ai/gen-ai-agents/assistant-secretary-agent/files/local_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiohappyeyeballs==2.4.3
2-
aiohttp==3.11.7
2+
aiohttp==3.12.14
33
aiosignal==1.3.1
44
altair==5.5.0
55
annotated-types==0.7.0
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

0 commit comments

Comments
 (0)