Skip to content

feat: Added tutorial and warnings for langchain orchestration template - #572

Open
BrigittaK307 wants to merge 20 commits into
mainfrom
I753325-438
Open

feat: Added tutorial and warnings for langchain orchestration template#572
BrigittaK307 wants to merge 20 commits into
mainfrom
I753325-438

Conversation

@BrigittaK307

@BrigittaK307 BrigittaK307 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Comment on lines +2 to +4
id: langgraph-orchestration-client
title: Using Orchestration Client in LangGraph Workflows
sidebar_label: Orchestration Client in LangGraph

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
id: langgraph-orchestration-client
title: Using Orchestration Client in LangGraph Workflows
sidebar_label: Orchestration Client in LangGraph
id: langgraph-template-orchestration-client
title: Using Orchestration Templates in LangGraph Agents
sidebar_label: Using Orchestration Templates in LangGraph Agents

}
});
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[pp] As a tutorial, I would prefer if there was something e.g. at the bottom for both that shows how to combine these into an actual LangGraph (or maybe createAgent()...)

Comment thread docs-js/langchain/orchestration.mdx Outdated
Comment on lines +235 to +240
.addConditionalEdges(START, routeByTurn, [
'firstTurnNode',
'conversationNode'
])
.addEdge('firstTurnNode', END)
.addEdge('conversationNode', END)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[pp] I think there should be edge from START -> firstTurnNode -> conversationNode with a conditional edge from conversationNode to itself or END (in this case perhaps just END).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The graph re-enters from START on every graph.invoke() call. Adapting the firstTurnNode → conversationNode case would cause both nodes to fire on turn 1, making two LLM calls instead of one.

Comment thread docs-js/orchestration/chat-completion.mdx Outdated
When initializing the client with an orchestration configuration reference, any messages passed to the `chatCompletion()` or `stream()` methods are automatically appended to the `messages_history` array as they cannot be merged into the stored configuration's prompt template.
The `messages` property defined in the `template` array are appended after any existing `messagesHistory` entries.
:::warning
Messages passed alongside a configuration reference are **automatically routed to `messages_history`** and cannot be merged into the remotely stored configuration's prompt template. See the [LangGraph tutorial](../tutorials/langgraph-template-orchestration-client) for the recommended two-client pattern in multi-turn workflows.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Messages passed alongside a configuration reference are **automatically routed to `messages_history`** and cannot be merged into the remotely stored configuration's prompt template. See the [LangGraph tutorial](../tutorials/langgraph-template-orchestration-client) for the recommended two-client pattern in multi-turn workflows.
Messages passed alongside a configuration reference are **automatically routed to `messages_history`** and cannot be merged into the remotely stored configuration's prompt template. See the [LangGraph tutorial](../tutorials/langgraph-template-orchestration-client) for the recommended two-client pattern in multi-turn workflows with configuration references.

Comment thread docs-js/orchestration/chat-completion.mdx Outdated
const agent = createAgent({
model: clientWithTemplate,
tools: [],
checkpointSaver: new MemorySaver()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
checkpointSaver: new MemorySaver()
checkpointer: new MemorySaver()

Comment thread pnpm-lock.yaml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[req] Remove this file.

@davidkna-sap davidkna-sap Sep 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To ease review please enable twoslash on all code blocks via ```ts twoslash

Comment thread docs-js/tutorials/langgraph-orchestration-client.mdx
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