mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: Disable mem0 telemetry by default (#3506)
* disable mem0 telemetry by default * test fix * addressed comments
This commit is contained in:
committed by
GitHub
Unverified
parent
8b475afe17
commit
f3e0be9555
@@ -1,6 +1,12 @@
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
import importlib.metadata
|
||||
import os
|
||||
|
||||
# Disable Mem0 telemetry by default to prevent usage data from being sent to telemetry provider.
|
||||
# Users can opt-in by setting MEM0_TELEMETRY=true before importing this package.
|
||||
if os.environ.get("MEM0_TELEMETRY") is None:
|
||||
os.environ["MEM0_TELEMETRY"] = "false"
|
||||
|
||||
from ._provider import Mem0Provider
|
||||
|
||||
|
||||
@@ -30,7 +30,13 @@ MemorySearchResponse_v2 = list[dict[str, Any]]
|
||||
|
||||
|
||||
class Mem0Provider(ContextProvider):
|
||||
"""Mem0 Context Provider."""
|
||||
"""Mem0 Context Provider.
|
||||
|
||||
Note:
|
||||
Mem0's telemetry is disabled by default when using this package.
|
||||
To enable telemetry, set the environment variable ``MEM0_TELEMETRY=true`` before
|
||||
importing this package.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user