From 2f682eb020042f8a7c77ad61333836b624c495ab Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Fri, 29 May 2026 10:28:21 -0400 Subject: [PATCH] docs: agent improvements (#13269) * docs: add structured output for agents * docs: add structured output note * docs: clarify both agent outputs and add release notes * docs: when langflow sends events to the playground and chat history --- docs/docs/Agents/agents.mdx | 23 +++++++++++++++++++--- docs/docs/Components/structured-output.mdx | 5 +++++ docs/docs/Support/release-notes.mdx | 13 ++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/docs/docs/Agents/agents.mdx b/docs/docs/Agents/agents.mdx index c3c8b5ff01..1fd5709e38 100644 --- a/docs/docs/Agents/agents.mdx +++ b/docs/docs/Agents/agents.mdx @@ -130,6 +130,10 @@ By default, the **Agent** component uses your Langflow installation's storage, a The **Message History** component isn't required for default chat memory, but it is required if you want to use external chat memory like Mem0. Additionally, the **Message History** component provides more options for sorting, filtering, and limiting memories. Although, most of these options are built-in to the **Agent** component with default values. +Langflow sends events to the Playground during each agent run: the input message, each tool call with its input and result, streaming tokens as they arrive, and the final answer. +Langflow writes the completed message to chat history when the run finishes. +When using the **Structured Response** output, Langflow does not send events to the Playground and does not write to chat history. + For more information, see [Store chat memory](/memory#store-chat-memory) and [**Message History** component](/message-history). ### Additional parameters @@ -145,10 +149,23 @@ For example: ## Agent component output -The **Agent** component outputs a **Response** (`response`) that is [`Message` data](/data-types#message) containing the agent's raw response to the query. +The **Agent** component has two outputs: -Typically, this is passed to a **Chat Output** component to return the response in a human-readable format. -It can also be passed to other components if you need to process the response further before, or in addition to, returning it to the user. +* **Response** (`response`): The agent's reply as [`Message`](/data-types#message) data, which is typically connected to a **Chat Output** component. +* **Structured Response** (`structured_response`): The agent's reply formatted as structured [`Data`](/data-types#data) according to the **Output Schema** you define. + + To configure the agent's **Structured Response** output: + + 1. In the **Agent** component, click the output label near the component's output port and select **Structured Response**. + 2. Select the **Agent** component to open the [component inspection panel](/concepts-components#component-inspection-panel), and then click