<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: Hande <159312713+hande-k@users.noreply.github.com> Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
11 lines
264 B
Python
11 lines
264 B
Python
from cognee.base_config import get_base_config
|
|
from .observers import Observer
|
|
|
|
|
|
def get_observe():
|
|
monitoring = get_base_config().monitoring_tool
|
|
|
|
if monitoring == Observer.LANGFUSE:
|
|
from langfuse.decorators import observe
|
|
|
|
return observe
|