Commit Graph

10 Commits

Author SHA1 Message Date
Devin AI
23f3f1da12 style: fix import sorting in flow modules
Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-31 04:02:29 +00:00
Devin AI
646ef12b3d fix: rename edge_props to router_edge_props to fix type checker error
Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-31 03:45:48 +00:00
Devin AI
10d6c5c527 fix: type checker errors and docstrings in flow modules
Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-31 03:45:48 +00:00
Devin AI
4d93a60806 fix: type annotations and import sorting in flow modules
Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-31 03:45:48 +00:00
Devin AI
1ece057ffc fix: type checker errors in flow modules
Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-31 03:45:48 +00:00
Devin AI
ac1dcd1a2c fix: break circular import by refactoring flow/visualizer/utils import structure
- Split utils.py into specialized modules (core_flow_utils.py, flow_visual_utils.py)
- Add path_utils.py for secure file path handling
- Update imports to prevent circular dependencies
- Use TYPE_CHECKING for type hints
- Fix import sorting issues

Co-Authored-By: Joe Moura <joao@crewai.com>
2024-12-31 03:45:48 +00:00
Marco Vinciguerra
a375ad2a2f feat: add docstring 2024-12-31 03:45:48 +00:00
Brandon Hancock (bhancock_ai)
6cc2f510bf Feat/joao flow improvement requests (#1795)
* Add in or and and in router

* In the middle of improving plotting

* final plot changes

---------

Co-authored-by: João Moura <joaomdmoura@gmail.com>
2024-12-24 18:55:44 -03:00
Brandon Hancock (bhancock_ai)
3f81383285 Brandon/cre 291 flow improvements (#1390)
* Implement joao feedback

* update colors for crew nodes

* clean up

* more linting clean up

* round legend corners

---------

Co-authored-by: João Moura <joaomdmoura@gmail.com>
2024-10-04 13:22:46 -03:00
Brandon Hancock (bhancock_ai)
96427c1dd2 Flow visualizer (#1377)
* Almost working!

* It fully works but not clean enought

* Working but not clean engouth

* Everything is workign

* WIP. Working on adding and & or to flows. In the middle of setting up template for flow as well

* template working

* Everything is working

* More changes and todos

* Add more support for @start

* Router working now

* minor tweak to

* minor tweak to conditions and event handling

* Update logs

* Too trigger happy with cleanup

* Added in Thiago fix

* Flow passing results again

* Working on docs.

* made more progress updates on docs

* Finished talking about controlling flows

* add flow output

* fixed flow output section

* add crews to flows section is looking good now

* more flow doc changes

* Update docs and add more examples

* drop visualizer

* save visualizer

* pyvis is beginning to work

* pyvis working

* it is working

* regular methods and triggers working. Need to work on router next.

* properly identifying router and router children nodes. Need to fix color

* children router working. Need to support loops

* curving cycles but need to add curve conditionals

* everythin is showing up properly need to fix curves

* all working. needs to be cleaned up

* adjust padding

* drop lib

* clean up prior to PR

* incorporate joao feedback

* final tweaks for joao

* Refactor to make crews easier to understand

* update CLI and templates

* Fix crewai version in flows

* Fix merge conflict
2024-10-01 15:20:26 -03:00