Skip to content

docs: agent blocks - #11529

Closed
mendonk wants to merge 16 commits into
docs-1.8-releasefrom
docs-agent-blocks
Closed

docs: agent blocks#11529
mendonk wants to merge 16 commits into
docs-1.8-releasefrom
docs-agent-blocks

Conversation

@mendonk

@mendonk mendonk commented Feb 2, 2026

Copy link
Copy Markdown
Collaborator

Add a quickstart, component docs, and release note for the Agent Blocks feature.

Preview build

@mendonk mendonk self-assigned this Feb 2, 2026
@coderabbitai

coderabbitai Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-agent-blocks

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 2, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 2, 2026
@github-actions

This comment has been minimized.

@mendonk mendonk mentioned this pull request Feb 3, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026
@github-actions

This comment has been minimized.

@mendonk
mendonk marked this pull request as ready for review February 4, 2026 17:09
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026
@github-actions

This comment has been minimized.

Comment thread docs/sidebars.js
"Components/components-bundles",
{
type: "category",
label: "Agent Blocks",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Agent blocks

@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026

@aimurphy aimurphy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved but please see my comments

@@ -0,0 +1,34 @@
---
title: AgentLoop

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The titles of these pages don't match the spelling used in the screenshot and on the pages. For example AgentLoop vs Agent Loop.

The "no space" versions are also in other places, like AgentLoop parameters.


An agent is fundamentally a while loop.
The while loop accepts input and iterates over the agent's reasoning.
The agent's reasoning sends messages to an LLM and examines the LLM's response to determine where to route the request.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The agent's reasoning sends messages to an LLM and examines the LLM's response to determine where to route the request.
The agent's reasoning sends messages to an LLM, and then it examines the LLM's response to determine where to route the request.

Comment on lines +14 to +18
```
ChatInput → WhileLoop → AgentStep → [Tool Calls] → ExecuteTool → WhileLoop
↓ [AI Message - done]
ChatOutput
```

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I suggest a mermaid diagram here instead.
You can use the free editor https://mermaid.live/edit

I can't remember if mermaid was already enabled in this repo https://docusaurus.io/docs/next/markdown-features/diagrams

ChatOutput
```

Langflow's [**Agent** component](/components-agents) is composed of this same architecture, and is suitable for most tasks that require a reasoning loop that can choose from a list of registered functions.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Langflow's [**Agent** component](/components-agents) is composed of this same architecture, and is suitable for most tasks that require a reasoning loop that can choose from a list of registered functions.
Langflow's [**Agent** component](/components-agents) uses this architecture, and it is suitable for most tasks that require a reasoning loop that can choose from a list of registered functions.

Comment on lines +22 to +24
But what if you want to modify the agent's behavior? For example, how do you include a validation step in your tool outputs before execution?

Use **Agent Blocks** to construct an agent in Langflow's visual builder.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
But what if you want to modify the agent's behavior? For example, how do you include a validation step in your tool outputs before execution?
Use **Agent Blocks** to construct an agent in Langflow's visual builder.
If you want to modify the agent's behavior, you can use **Agent Blocks** to construct an agent. For example, you could add a validation step to `tool_calls` outputs.

import Icon from "@site/src/components/icon";
import PartialParams from '@site/docs/_partial-hidden-params.mdx';

The **Think Tool** component provides think tool support for step-by-step reasoning. It enables agents to perform explicit reasoning steps before taking action, improving the quality of tool selection and parameter generation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The first sentence is repetitive and doesn't help explain what it does.

**Think Tool** is typically used as a tool that the [**Agent Step** component](/agent-blocks-agent-step) can call during reasoning:

```
AgentStep → [Think Tool Call] → ThinkTool → [Reasoning Output] → AgentStep

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure this is adding any value.

| chat_history | Chat Memory | Data[] | Input parameter. Chat history for context-aware responses. |
| input_value | Input | Message | Input parameter. The input message to process. |
| tool_calls | Tool Calls | ToolCall[] | Output parameter. Tool calls requested by the LLM (routes to [**Execute Tool** component](/agent-blocks-execute-tool)). |
| ai_message | AI Message | Message | Output parameter. Final answer from the LLM (routes to [**Chat Output** component](/chat-input-and-output)). |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

On the quickstart, the outputs are Response and Tool Calls.

import PartialParams from '@site/docs/_partial-hidden-params.mdx';

The **Agent Loop** component is a pre-composed component that encapsulates the complete agent loop. It combines the [**While Loop** component](/agent-blocks-while-loop), [**Agent Step** component](/agent-blocks-agent-step), and [**Execute Tool** component](/agent-blocks-execute-tool) into a single, ready-to-use component.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would add an explanation or list here about when to use:

  • Individual Agent Blocks components: You want to build a custom agent with extra steps or logic beyond regular tool calls.
  • Agent Loop component: ?
  • Agents component: ?

Comment thread docs/sidebars.js
label: "Bundles",
items: [
"Components/components-bundles",
{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

strange this is under bundles instead of core 🤷🏻‍♀️

@github-actions github-actions Bot added the lgtm This PR has been approved by a maintainer label Feb 4, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Feb 4, 2026
@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

Build successful! ✅
Deploying docs draft.
Deploy successful! View draft

@mendonk

mendonk commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator Author

Closing as won't do for 1.8 release.

@mendonk mendonk closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants