Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/oss/langchain/customer-support-state-machine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ In this tutorial, you'll build a customer support agent that does the following:

Unlike the [supervisor pattern](/oss/langchain/supervisor) where sub-agents are called as tools, the **state machine pattern** uses a single agent whose configuration changes based on workflow progress. Each "step" is just a different configuration (system prompt + tools) of the same underlying agent, selected dynamically based on state.

<Tip>
This workflow can also be implemented using handoffs between distinct agents. However, that approach depending on implementation may introduce unnecessary overhead: one tool call to transfer control, then another to act on the user's request. The state machine pattern is efficient—a single tool call both performs the action (like recording warranty status) and transitions to the next step.
</Tip>

Here's the workflow we'll build:

```mermaid
Expand Down
Loading