feat: Add CrewAI Flows and LiteAgent support to Galileo event listener#379
Open
nicoferdi96 wants to merge 3 commits intorungalileo:mainfrom
Open
feat: Add CrewAI Flows and LiteAgent support to Galileo event listener#379nicoferdi96 wants to merge 3 commits intorungalileo:mainfrom
nicoferdi96 wants to merge 3 commits intorungalileo:mainfrom
Conversation
nicoferdi96
commented
Oct 22, 2025
- 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
Now we are correctly handling state changes and execution methods
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
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.