Fix errors

This commit is contained in:
Brandon Hancock
2025-03-28 12:58:23 -04:00
parent 594784473b
commit f2927fc266
2 changed files with 4 additions and 3 deletions

View File

@@ -446,6 +446,7 @@ class LiteAgent(BaseModel):
tool_class=formatted_answer.tool,
started_at=datetime.now(),
finished_at=datetime.now(),
output=tool_result.result,
),
)
except Exception as e:

View File

@@ -77,7 +77,7 @@ class AgentExecutionErrorEvent(BaseEvent):
# New event classes for LiteAgent
class LiteAgentExecutionStartedEvent(CrewEvent):
class LiteAgentExecutionStartedEvent(BaseEvent):
"""Event emitted when a LiteAgent starts executing"""
agent_info: Dict[str, Any]
@@ -88,7 +88,7 @@ class LiteAgentExecutionStartedEvent(CrewEvent):
model_config = {"arbitrary_types_allowed": True}
class LiteAgentExecutionCompletedEvent(CrewEvent):
class LiteAgentExecutionCompletedEvent(BaseEvent):
"""Event emitted when a LiteAgent completes execution"""
agent_info: Dict[str, Any]
@@ -96,7 +96,7 @@ class LiteAgentExecutionCompletedEvent(CrewEvent):
type: str = "lite_agent_execution_completed"
class LiteAgentExecutionErrorEvent(CrewEvent):
class LiteAgentExecutionErrorEvent(BaseEvent):
"""Event emitted when a LiteAgent encounters an error during execution"""
agent_info: Dict[str, Any]