Skip to content

Assorted updates to Pipecat Flows docs#263

Merged
markbackman merged 3 commits into
mainfrom
pk/assorted-updates
Jun 27, 2025
Merged

Assorted updates to Pipecat Flows docs#263
markbackman merged 3 commits into
mainfrom
pk/assorted-updates

Conversation

@kompfner
Copy link
Copy Markdown
Contributor

@kompfner kompfner commented Jun 17, 2025

Depends on pipecat-ai/pipecat-flows#141 and pipecat-ai/pipecat-flows#142 being published first.

- Add `name` to `NodeConfig`
- Pass initial node into `initialize()` for dynamic flows
- Deprecate `set_node()` in favor of `set_node_from_config()`

Note that I didn't yet updates calls to `set_node()` from within `transition_callback`s—in an upcoming change we'll move away from `transition_callback` and `transition_to` altogether.
@kompfner kompfner force-pushed the pk/assorted-updates branch from 8e9ba80 to a964da6 Compare June 17, 2025 20:44
…stead of `transition_to` and `transition_callback`
@kompfner kompfner force-pushed the pk/assorted-updates branch 3 times, most recently from 721b6dc to a910983 Compare June 18, 2025 01:55
…unctionSchema` or function configuration dict (instead, metadata are automatically extracted from a combination of the function signature and docstring)
@kompfner kompfner force-pushed the pk/assorted-updates branch from a910983 to 708c131 Compare June 18, 2025 02:00
@kompfner kompfner changed the title [WIP] Assorted updates Assorted updates Jun 18, 2025
@kompfner kompfner marked this pull request as ready for review June 18, 2025 02:00
@kompfner kompfner requested review from Copilot and markbackman June 18, 2025 02:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces assorted documentation updates and API adjustments for Pipecat Flows. Key changes include new deprecation warnings and guidance for legacy properties, updated function signatures and return types for improved clarity, and a shift from using set_node to set_node_from_config for node configuration.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
server/frameworks/flows/pipecat-flows.mdx Updated documentation blocks with deprecation warnings and API usage notes
guides/features/pipecat-flows.mdx Revised code examples and narrative to reflect new function signatures and configuration patterns
Comments suppressed due to low confidence (3)

server/frameworks/flows/pipecat-flows.mdx:313

  • [nitpick] The deprecation warning for the 'transition_to' field is clear, but consider adding a link to a migration or upgrade guide to help users transition to the new API.
      </Warning>

server/frameworks/flows/pipecat-flows.mdx:677

  • The inline comment suggests that a NodeConfig should be returned for dynamic flows, yet the function signature indicates a string. Please clarify the expected return type for consistency in the examples.
    return None, "target_node" # Return NodeConfig instead of str for dynamic flows

@kompfner kompfner changed the title Assorted updates Assorted updates to Pipecat Flows docs Jun 18, 2025
@kompfner kompfner requested a review from aconchillo June 26, 2025 13:33
Copy link
Copy Markdown
Contributor

@markbackman markbackman left a comment

Choose a reason for hiding this comment

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

Really nice update 🙌

Thanks for cleaning up parts of the guide section, too.

@markbackman markbackman merged commit 5391183 into main Jun 27, 2025
1 check passed
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