-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brandon/cre 19 workflows #1347
Brandon/cre 19 workflows #1347
Conversation
… template for flow as well
pyproject.toml
Outdated
@@ -32,6 +32,7 @@ json-repair = "^0.25.2" | |||
auth0-python = "^4.7.1" | |||
poetry = "^1.8.3" | |||
litellm = "^1.44.22" | |||
graphviz = "^0.20.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/crewai/flow/basic_flow.py
Outdated
@@ -0,0 +1,52 @@ | |||
import asyncio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to commit this file?
src/crewai/flow/decorators.py
Outdated
@@ -0,0 +1 @@ | |||
# TODO: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove this ? or havent pushed yet
src/crewai/flow/flow.py
Outdated
dot.attr(bgcolor=colors["bg"]) | ||
|
||
# Add nodes for each relevant method | ||
for method_name, method in self._methods.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be their own private methods ?
src/crewai/flow/flow.py
Outdated
) | ||
|
||
# Add edges and enhanced router representation | ||
for method_name, method in self._methods.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
src/crewai/flow/flow.py
Outdated
trigger, method_name, color=colors["edge"], penwidth="2" | ||
) | ||
|
||
if method_name in self._routers.values(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
src/crewai/flow/flow_graph.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
from crewai.flow.flow import Flow, listen, start | ||
|
||
|
||
class FlexibleExampleFlow(Flow): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need all the examples here or better to add them as markdown in docs ?
src/crewai/flow/flow.py
Outdated
# Color scheme (using company colors) | ||
colors = { | ||
"bg": "#FFFFFF", | ||
"start": "#FF5A50", | ||
"method": "#333333", | ||
"router_outline": "#FF5A50", | ||
"edge": "#333333", | ||
"text": "#FFFFFF", | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a utils for visualize?
Awesome work man ! 🔥 🔥 |
No description provided.