From cefc57e2a31f5ff62ec57864fd00b8a8b8a4b60e Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Mon, 24 Feb 2025 11:48:20 -0800 Subject: [PATCH] refactor: Update LLM event docstrings for clarity Improve docstrings for LLM call events to more accurately describe their purpose and lifecycle --- src/crewai/utilities/events/llm_events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crewai/utilities/events/llm_events.py b/src/crewai/utilities/events/llm_events.py index 751769fda..8c2554a21 100644 --- a/src/crewai/utilities/events/llm_events.py +++ b/src/crewai/utilities/events/llm_events.py @@ -12,7 +12,7 @@ class LLMCallType(Enum): class LLMCallStartedEvent(CrewEvent): - """Event emitted when a task starts""" + """Event emitted when a LLM call starts""" type: str = "llm_call_started" messages: Union[str, List[Dict[str, str]]] @@ -22,7 +22,7 @@ class LLMCallStartedEvent(CrewEvent): class LLMCallCompletedEvent(CrewEvent): - """Event emitted when a task completes""" + """Event emitted when a LLM call completes""" type: str = "llm_call_completed" response: Any @@ -30,7 +30,7 @@ class LLMCallCompletedEvent(CrewEvent): class LLMCallFailedEvent(CrewEvent): - """Event emitted when a task fails""" + """Event emitted when a LLM call fails""" error: str type: str = "llm_call_failed"