Skip to content

Comments

feat: Add CrewAI Flows and LiteAgent support to Galileo event listener#379

Open
nicoferdi96 wants to merge 3 commits intorungalileo:mainfrom
nicoferdi96:nicoferdi-crewai-improvements
Open

feat: Add CrewAI Flows and LiteAgent support to Galileo event listener#379
nicoferdi96 wants to merge 3 commits intorungalileo:mainfrom
nicoferdi96:nicoferdi-crewai-improvements

Conversation

@nicoferdi96
Copy link

  • Add support for Flow events (FlowStartedEvent, FlowFinishedEvent, MethodExecutionStartedEvent, MethodExecutionFinishedEvent, MethodExecutionFailedEvent)
  • Add support for LiteAgent events (LiteAgentExecutionStartedEvent, LiteAgentExecutionCompletedEvent, LiteAgentExecutionErrorEvent)
  • Implement flow context tracking with _flow_root_id, _current_method_id, and _current_lite_agent_id
  • Enhance _generate_run_id to handle flow-specific events and agent_info
  • Update parent run ID logic to properly nest crews within methods and tools/LLMs within lite agents
  • Add _hash_to_uuid helper method for cleaner UUID generation
  • Import flow and lite agent event types conditionally based on CrewAI version

- Add support for Flow events (FlowStartedEvent, FlowFinishedEvent, MethodExecutionStartedEvent, MethodExecutionFinishedEvent, MethodExecutionFailedEvent)
- Add support for LiteAgent events (LiteAgentExecutionStartedEvent, LiteAgentExecutionCompletedEvent, LiteAgentExecutionErrorEvent)
- Implement flow context tracking with _flow_root_id, _current_method_id, and _current_lite_agent_id
- Enhance _generate_run_id to handle flow-specific events and agent_info
- Update parent run ID logic to properly nest crews within methods and tools/LLMs within lite agents
- Add _hash_to_uuid helper method for cleaner UUID generation
- Import flow and lite agent event types conditionally based on CrewAI version
@nicoferdi96 nicoferdi96 requested a review from a team as a code owner October 22, 2025 13:17
@nicoferdi96 nicoferdi96 requested a review from jrhone October 22, 2025 13:17
Now we are correctly handling state changes and execution methods
@Focadecombate
Copy link
Contributor

Can you provide a code example to validate the implementation?

- Race condition for event bus events
- Better flow handling
- including crews inside a flow
- Better handling of agents
@nicoferdi96
Copy link
Author

hey @Focadecombate thanks for having a look. I did some improvements today to support crews embedded in a flow + better light agent tracking with race condition. tested with normal crew as well to verify all is working good.
flow_crew_galileo.zip
galileo_crew_test.zip

@Focadecombate Focadecombate self-requested a review November 13, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants