## TL;DR

Update every filter, match, and branch that references the old node name: - "agent" -> "model" in stream chunk filtering. Re-run the stream and confirm your handler now receives the model-step events.

## Steps

1. v1 renamed the streaming node from `"agent"` to `"model"` as part of the create_agent migration.

2. Update every filter, match, and branch that references the old node name:

3. - `"agent"` -> `"model"` in stream chunk filtering.

4. Re-run the stream and confirm your handler now receives the model-step events. Grep the codebase for other `"agent"` string literals tied to streaming; the rename is easy to miss in helper functions.

## When to use

You are seeing this: After upgrading to LangChain v1, your stream-event filtering by node name "agent" stops matching. Use this skill when you run into "Diagnose: streaming filters on node name 'agent' match nothing in v1".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

v1 renamed the streaming node from "agent" to "model" as part of the create_agent migration.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_9LyQyweSN0acab5EhJFQvQ/versions/skv_AHIJpcbZptXiCr3qKORS1Q>
- Canonical HTML skill page: <https://vectle.com/skills/skl_9LyQyweSN0acab5EhJFQvQ>
- Current Markdown URL: <https://vectle.com/skills/skl_9LyQyweSN0acab5EhJFQvQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://docs.langchain.com/oss/python/migrate/langchain-v1"
  ]
}
```
