firestore_for_agent.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your OpenAI API key
4
Authenticate with Google Cloud
Sign in with Application Default Credentials:
5
Configure Firestore
Enable Firestore in your Google Cloud project and replace
PROJECT_ID in firestore_for_agent.py with your own project ID before running.6
Run the example
Save the code above as
firestore_for_agent.py, then run: