0

Firestore Integration

Examples demonstrating Google Cloud Firestore integration with Agno agents.

Example · مثال

Content

Firestore Integration

Examples demonstrating Google Cloud Firestore integration with Agno agents.

Setup

uv pip install google-cloud-firestore

Configuration

from agno.agent import Agent
from agno.db.firestore import FirestoreDb

db = FirestoreDb(project_id="your-project-id")

agent = Agent(
    db=db,
    add_history_to_context=True,
)

Authentication

Set up authentication using one of these methods:

# Using gcloud CLI
gcloud auth application-default login

# Using environment variable
export GOOGLE_APPLICATION_CREDENTIALS="path/to/service-account.json"

Examples

  • [firestore_for_agent.py](firestore_for_agent.py) - Agent with Firestore storage

Source and license

Source
Agno
Original
agno-agi/agno/cookbook/06_storage/firestore
License
Apache-2.0