Merge branch 'main' of github.com:crewAIInc/crewAI into lorenze/imp/native-tool-calling

This commit is contained in:
lorenzejay
2026-01-22 08:38:57 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ from crewai.events.base_events import BaseEvent
class LLMEventBase(BaseEvent):
from_task: Any | None = None
from_agent: Any | None = None
model: str | None = None
def __init__(self, **data: Any) -> None:
if data.get("from_task"):
@@ -42,7 +43,6 @@ class LLMCallStartedEvent(LLMEventBase):
"""
type: str = "llm_call_started"
model: str | None = None
messages: str | list[dict[str, Any]] | None = None
tools: list[dict[str, Any]] | None = None
callbacks: list[Any] | None = None
@@ -56,7 +56,6 @@ class LLMCallCompletedEvent(LLMEventBase):
messages: str | list[dict[str, Any]] | None = None
response: Any
call_type: LLMCallType
model: str | None = None
class LLMCallFailedEvent(LLMEventBase):

View File

@@ -349,6 +349,7 @@ class BaseLLM(ABC):
error=error,
from_task=from_task,
from_agent=from_agent,
model=self.model,
),
)