# AIMessage content not included in summarized final AIMessage shown to user

**URL:** <https://forum.langchain.com/t/aimessage-content-not-included-in-summarized-final-aimessage-shown-to-user/513>\
**Category:** LangGraph\
**Tags:** intro-to-langgraph, ambient-agents-with-, python-help\
**Created:** [July 17, 2025, 7:16am UTC](https://forum.langchain.com/t/aimessage-content-not-included-in-summarized-final-aimessage-shown-to-user/513 "2025-07-17T07:16:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrijayan](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@shrijayan](https://forum.langchain.com/u/shrijayan)\
**Post date:** [July 17, 2025, 7:16am UTC](https://forum.langchain.com/t/aimessage-content-not-included-in-summarized-final-aimessage-shown-to-user/513/1 "2025-07-17T07:16:11Z")

</div>

I’m using LangGraph with a setup where only the **final AIMessage** is shown to the end user. However, I noticed that the **initial AIMessage** , which includes natural language reasoning and tool calls (e.g., “Let me help you with each one…”), is not included in the final AI response returned by the graph.

### Reproduction Steps:

1. User asks a multi-part question.
2. LangGraph LLM node (e.g., Claude or GPT) generates an initial `AIMessage` with:
  - greeting or partial answers
  - a list of tool calls

3. Tools are invoked and tool outputs are added as `ToolMessage`s.
4. The final `AIMessage` is generated using the tool results.
5. Only this final AIMessage is returned to the user.
6. The helpful context from the first `AIMessage` is lost (e.g., intro, breakdown of queries, intent reasoning).

### Expected Behavior:

I expect LangGraph to either:

- Automatically **include the first AIMessage content** in the final message shown to the user, or
- Provide an option or flag to **merge all relevant AI text messages** into one cohesive output.

### Example:

Here’s a simplified illustration:

```json
[
  {
    "type": "ai",
    "content": "Hi, Hello How are you? Sure, let me break that down...",
    "tool_calls": [...]
  },
  {
    "type": "tool",
    "name": "tool1",
    "content": {...}
  },
  {
    "type": "ai",
    "content": "Here's your full response..."
  }
]

```

But only the final AI message `"Here's your full response..."` is visible to the user. The **Hello how are you** is getting missed.

### Suggestion:

It would be helpful to:

- Add a configuration flag (e.g., `merge_ai_messages=True`)
- Or suggest an official pattern for users who want to manually concatenate all relevant AI text content before showing the final response
