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 the editor to output a special __function:__ token for handlers, parse that token in the FlowManager #59

Merged
merged 3 commits into from
Dec 8, 2024

Conversation

markbackman
Copy link
Contributor

The Flows editor exports JSON, which will export function handlers as strings. To get this JSON to be runnable, we're adding a __function__: token to the handler, so the FlowManager can parse and register the function from the JSON. This is additive, as directly specifying the function name in the JSON is still supported.

This also comes with an update to the editor code to support adding the __function__: token. Updated the examples to reflect that change too.

Copy link

vercel bot commented Dec 8, 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 8, 2024 2:23pm

@markbackman markbackman requested a review from jamsea December 8, 2024 13:58
@markbackman
Copy link
Contributor Author

@jamsea FYI

@markbackman markbackman merged commit e4fcf31 into main Dec 8, 2024
2 checks passed
@markbackman markbackman deleted the mb/fix-json branch December 8, 2024 14:34
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.

1 participant