Learn to use Firestore as a database for your Agents
FirestoreDb
class.
You can get started with Firestore following their Get Started guide.
project_id
parameter to the FirestoreDb
class. Firestore will connect automatically using your Google Cloud credentials.
pip install openai google-cloud-firestore agno
Parameter | Type | Default | Description |
---|---|---|---|
db_client | Optional[Client] | - | The Firestore client to use. |
project_id | Optional[str] | - | The GCP project ID for Firestore. |
session_collection | Optional[str] | - | Name of the collection to store sessions. |
memory_collection | Optional[str] | - | Name of the collection to store memories. |
metrics_collection | Optional[str] | - | Name of the collection to store metrics. |
eval_collection | Optional[str] | - | Name of the collection to store evaluation runs. |
knowledge_collection | Optional[str] | - | Name of the collection to store knowledge documents. |