mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Fix errors
This commit is contained in:
@@ -446,6 +446,7 @@ class LiteAgent(BaseModel):
|
|||||||
tool_class=formatted_answer.tool,
|
tool_class=formatted_answer.tool,
|
||||||
started_at=datetime.now(),
|
started_at=datetime.now(),
|
||||||
finished_at=datetime.now(),
|
finished_at=datetime.now(),
|
||||||
|
output=tool_result.result,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class AgentExecutionErrorEvent(BaseEvent):
|
|||||||
|
|
||||||
|
|
||||||
# New event classes for LiteAgent
|
# New event classes for LiteAgent
|
||||||
class LiteAgentExecutionStartedEvent(CrewEvent):
|
class LiteAgentExecutionStartedEvent(BaseEvent):
|
||||||
"""Event emitted when a LiteAgent starts executing"""
|
"""Event emitted when a LiteAgent starts executing"""
|
||||||
|
|
||||||
agent_info: Dict[str, Any]
|
agent_info: Dict[str, Any]
|
||||||
@@ -88,7 +88,7 @@ class LiteAgentExecutionStartedEvent(CrewEvent):
|
|||||||
model_config = {"arbitrary_types_allowed": True}
|
model_config = {"arbitrary_types_allowed": True}
|
||||||
|
|
||||||
|
|
||||||
class LiteAgentExecutionCompletedEvent(CrewEvent):
|
class LiteAgentExecutionCompletedEvent(BaseEvent):
|
||||||
"""Event emitted when a LiteAgent completes execution"""
|
"""Event emitted when a LiteAgent completes execution"""
|
||||||
|
|
||||||
agent_info: Dict[str, Any]
|
agent_info: Dict[str, Any]
|
||||||
@@ -96,7 +96,7 @@ class LiteAgentExecutionCompletedEvent(CrewEvent):
|
|||||||
type: str = "lite_agent_execution_completed"
|
type: str = "lite_agent_execution_completed"
|
||||||
|
|
||||||
|
|
||||||
class LiteAgentExecutionErrorEvent(CrewEvent):
|
class LiteAgentExecutionErrorEvent(BaseEvent):
|
||||||
"""Event emitted when a LiteAgent encounters an error during execution"""
|
"""Event emitted when a LiteAgent encounters an error during execution"""
|
||||||
|
|
||||||
agent_info: Dict[str, Any]
|
agent_info: Dict[str, Any]
|
||||||
|
|||||||
Reference in New Issue
Block a user