Skip to content

Conversation

hntrl
Copy link
Member

@hntrl hntrl commented Sep 30, 2025

No description provided.

@github-actions github-actions bot added langchain For docs changes to LangChain python For content related to the Python version of LangChain projects oss javascript labels Sep 30, 2025
Copy link

Preview ID generated: preview-hunter-1759195386-b13f72a

@github-actions github-actions bot added the langgraph For docs changes to LangGraph label Sep 30, 2025
@hntrl hntrl force-pushed the hunter/js-retrieval branch from 66de32b to ad39b30 Compare September 30, 2025 22:02
Copy link

Preview ID generated: preview-hunter-1759269798-fb6d734

Copy link

Preview ID generated: preview-hunter-1759270187-c8de940

@hntrl hntrl marked this pull request as ready for review September 30, 2025 23:05
print(texts[0])
```
```output
page_content='Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans. \n\nLast year COVID-19 kept us apart. This year we are finally together again. \n\nTonight, we meet as Democrats Republicans and Independents. But most importantly as Americans. \n\nWith a duty to one another to the American people to the Constitution. \n\nAnd with an unwavering resolve that freedom will always triumph over tyranny. \n\nSix days ago, Russia’s Vladimir Putin sought to shake the foundations of the free world thinking he could make it bend to his menacing ways. But he badly miscalculated. \n\nHe thought he could roll into Ukraine and the world would roll over. Instead he met a wall of strength he never imagined. \n\nHe met the Ukrainian people. \n\nFrom President Zelenskyy to every Ukrainian, their fearlessness, their courage, their determination, inspires the world.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ideally, we'd have output/examples that are non-political and not American-centric to make our docs more accessible to a wider audience, but I think stateOfTheUnion was an existing example already. Just flagging - we can update this example later

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah these are brought over

@eyurtsev eyurtsev self-assigned this Oct 1, 2025
:::js
```typescript
import { createAgent } from "langchain";
import { createAgent, dynamicSystemPromptMiddleware } from "langchain";
Copy link
Collaborator

Choose a reason for hiding this comment

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

@christian-bromann are we removing this prebuilt middleware in favor of modifyRequest?

Copy link
Member

Choose a reason for hiding this comment

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

no, we decided to keep dynamicSystemPromptMiddleware in JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript langchain For docs changes to LangChain langgraph For docs changes to LangGraph oss python For content related to the Python version of LangChain projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants