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

Update FlowManager to support role and task messages #68

Merged
merged 10 commits into from
Dec 20, 2024

Conversation

markbackman
Copy link
Contributor

@markbackman markbackman commented Dec 19, 2024

Flows code

Changed

  • Nodes now have two message types to better delineate defining the role or
    persona of the bot from the task it needs to accomplish. The message types are:

    • role_message, which defines the personality or role of the bot
    • task_message, which defines the task to be completed for a given node
  • role_messages can be defined for the initial node and then inherited by
    subsequent nodes. You can treat this as an LLM "system" message.

  • Simplified FlowManager initialization by removing the need for manual context
    setup in both static and dynamic flows. Now, you need to create a FlowManager
    and initialize it to start the flow.

  • All examples have been updated to align with the API changes.


Flows editor

Also, the Flow Editor needed to be updated for the new message structure as well. This PR includes an update there, as well as updates to all editor JSON examples.

Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
pipecat-flows ✅ Ready (Inspect) Visit Preview Dec 20, 2024 1:36am

CHANGELOG.md Outdated Show resolved Hide resolved
@aconchillo
Copy link

Awesome! LGTM!

@markbackman markbackman merged commit a00b0b8 into main Dec 20, 2024
2 checks passed
@markbackman markbackman deleted the mb/system-messages-rework branch December 20, 2024 02:38
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.

2 participants