mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-14 10:38:29 +00:00
* 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
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
DARK_GRAY = "#333333"
|
|
CREWAI_ORANGE = "#FF5A50"
|
|
GRAY = "#666666"
|
|
WHITE = "#FFFFFF"
|
|
|
|
COLORS = {
|
|
"bg": WHITE,
|
|
"start": CREWAI_ORANGE,
|
|
"method": DARK_GRAY,
|
|
"router": DARK_GRAY,
|
|
"router_border": CREWAI_ORANGE,
|
|
"edge": GRAY,
|
|
"router_edge": CREWAI_ORANGE,
|
|
"text": WHITE,
|
|
}
|
|
|
|
NODE_STYLES = {
|
|
"start": {
|
|
"color": COLORS["start"],
|
|
"shape": "box",
|
|
"font": {"color": COLORS["text"]},
|
|
"margin": {"top": 10, "bottom": 8, "left": 10, "right": 10},
|
|
},
|
|
"method": {
|
|
"color": COLORS["method"],
|
|
"shape": "box",
|
|
"font": {"color": COLORS["text"]},
|
|
"margin": {"top": 10, "bottom": 8, "left": 10, "right": 10},
|
|
},
|
|
"router": {
|
|
"color": {
|
|
"background": COLORS["router"],
|
|
"border": COLORS["router_border"],
|
|
"highlight": {
|
|
"border": COLORS["router_border"],
|
|
"background": COLORS["router"],
|
|
},
|
|
},
|
|
"shape": "box",
|
|
"font": {"color": COLORS["text"]},
|
|
"borderWidth": 3,
|
|
"borderWidthSelected": 4,
|
|
"shapeProperties": {"borderDashes": [5, 5]},
|
|
"margin": {"top": 10, "bottom": 8, "left": 10, "right": 10},
|
|
},
|
|
}
|