feat: add capability to track LLM calls by task and agent

This makes it possible to filter or scope LLM events by specific agents or tasks, which can be very useful for debugging or analytics in real-time application
This commit is contained in:
Lucas Gomide
2025-06-30 15:23:37 -03:00
parent 5a12b51ba2
commit 081f8ddbb9
9 changed files with 483 additions and 40 deletions

View File

@@ -31,6 +31,7 @@ class CustomLLM(BaseLLM):
tools=None,
callbacks=None,
available_functions=None,
from_task=None,
):
"""
Mock LLM call that returns a predefined response.