How can the client record historical messages without calling the LangChain environment #199

Closed
opened 2026-02-16 00:19:20 -05:00 by yindo · 0 comments
Owner

Originally created by @Ricardo-yyz on GitHub (Jun 18, 2024).

Discussed in https://github.com/langchain-ai/langserve/discussions/686

Originally posted by Ricardo-yyz June 18, 2024
When I built an API using Langserve and mimicked the demo in the example, the problem was how to record historical information in the input without calling modules such as HumanMessage if my client did not have a langchain environment. I tried to record in JSON format, but I couldn't find a suitable way to convert it to the corresponding format on the server side.

Originally created by @Ricardo-yyz on GitHub (Jun 18, 2024). ### Discussed in https://github.com/langchain-ai/langserve/discussions/686 <div type='discussions-op-text'> <sup>Originally posted by **Ricardo-yyz** June 18, 2024</sup> When I built an API using Langserve and mimicked the demo in the [example,](https://github.com/langchain-ai/langserve/blob/main/examples/agent_with_history/client.ipynb) the problem was how to record historical information in the input without calling modules such as HumanMessage if my client did not have a langchain environment. I tried to record in JSON format, but I couldn't find a suitable way to convert it to the corresponding format on the server side.</div>
yindo closed this issue 2026-02-16 00:19:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langserve#199