Skip to content

Commit aa61947

Browse files
fix(langchain): remove empty accordion in middleware docs (#1546)
The Context editing middleware docs have an additional Configuration options accordion. This patch fixes. <img width="657" height="106" alt="Screenshot 2025-11-20 at 9 14 43 AM" src="https://github.com/user-attachments/assets/76784621-a16a-4a7b-bd14-560009ba85b9" />
1 parent 5a0a15d commit aa61947

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/oss/langchain/middleware/built-in.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,11 +1939,9 @@ agent = create_agent(
19391939
],
19401940
)
19411941
```
1942-
:::
19431942

19441943
<Accordion title="Configuration options">
19451944

1946-
:::python
19471945
<ParamField body="root_path" type="str" required>
19481946
Root directory to search. All file operations are relative to this path.
19491947
</ParamField>
@@ -1998,10 +1996,10 @@ result = agent.invoke({
19981996
# 1. glob_search(pattern="**/*.py") to find Python files
19991997
# 2. grep_search(pattern="async def", include="*.py") to find async functions
20001998
```
2001-
:::
2002-
20031999
</Accordion>
20042000

2001+
:::
2002+
20052003
## Provider-specific middleware
20062004

20072005
These middleware are optimized for specific LLM providers.

0 commit comments

Comments
 (0)