Skip to content
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

Merged
merged 28 commits into from
Sep 27, 2024
Merged

Brandon/cre 19 workflows #1347

merged 28 commits into from
Sep 27, 2024

Conversation

bhancockio
Copy link
Collaborator

No description provided.

Copy link

linear bot commented Sep 24, 2024

CRE-19 Workflows

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,52 @@
import asyncio
Copy link
Collaborator

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?

@@ -0,0 +1 @@
# TODO:
Copy link
Collaborator

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

dot.attr(bgcolor=colors["bg"])

# Add nodes for each relevant method
for method_name, method in self._methods.items():
Copy link
Collaborator

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 ?

)

# Add edges and enhanced router representation
for method_name, method in self._methods.items():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

trigger, method_name, color=colors["edge"], penwidth="2"
)

if method_name in self._routers.values():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Collaborator

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):
Copy link
Collaborator

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 ?

Comment on lines 261 to 269
# Color scheme (using company colors)
colors = {
"bg": "#FFFFFF",
"start": "#FF5A50",
"method": "#333333",
"router_outline": "#FF5A50",
"edge": "#333333",
"text": "#FFFFFF",
}
Copy link
Collaborator

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?

@lorenzejay
Copy link
Collaborator

Awesome work man ! 🔥 🔥

@lorenzejay lorenzejay self-requested a review September 26, 2024 17:00
@joaomdmoura joaomdmoura merged commit bc31019 into main Sep 27, 2024
3 of 4 checks passed
@joaomdmoura joaomdmoura deleted the brandon/cre-19-workflows branch September 27, 2024 15:11
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.

3 participants