[PR #88] [MERGED] Add callback events from server #337

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langserve/pull/88
Author: @eyurtsev
Created: 10/23/2023
Status: Merged
Merged: 10/23/2023
Merged by: @eyurtsev

Base: mainHead: eugene/add_server_side_callbacks


📝 Commits (4)

📊 Changes

7 files changed (+792 additions, -90 deletions)

View changed files

langserve/callbacks.py (+360 -0)
📝 langserve/client.py (+22 -18)
📝 langserve/serialization.py (+41 -28)
📝 langserve/server.py (+107 -20)
📝 langserve/validation.py (+194 -1)
📝 tests/unit_tests/test_serialization.py (+8 -4)
📝 tests/unit_tests/test_server_client.py (+60 -19)

📄 Description

This PR allows the server to send callback events to the client.

Limited to the invoke and batch end points for the time being.

This PR does NOT include the client code to use the events (will be included
in a separate PR to keep things simple).

Also updating the serializer to use an interface -- placeholder for future code
to accommodate user adding their own custom pydantic objects.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langserve/pull/88 **Author:** [@eyurtsev](https://github.com/eyurtsev) **Created:** 10/23/2023 **Status:** ✅ Merged **Merged:** 10/23/2023 **Merged by:** [@eyurtsev](https://github.com/eyurtsev) **Base:** `main` ← **Head:** `eugene/add_server_side_callbacks` --- ### 📝 Commits (4) - [`4a24416`](https://github.com/langchain-ai/langserve/commit/4a244160645b6c22de6e2c2c00810da5a6846a37) x - [`7de47aa`](https://github.com/langchain-ai/langserve/commit/7de47aa10b6a7e3559fc03fc9432eb6d69aaa804) x - [`5edb3a0`](https://github.com/langchain-ai/langserve/commit/5edb3a0acf55b5995b255ce3926e541f465542ab) x - [`1ab54c5`](https://github.com/langchain-ai/langserve/commit/1ab54c584782e8e6464bd0b4519f795e9d9428f7) x ### 📊 Changes **7 files changed** (+792 additions, -90 deletions) <details> <summary>View changed files</summary> ➕ `langserve/callbacks.py` (+360 -0) 📝 `langserve/client.py` (+22 -18) 📝 `langserve/serialization.py` (+41 -28) 📝 `langserve/server.py` (+107 -20) 📝 `langserve/validation.py` (+194 -1) 📝 `tests/unit_tests/test_serialization.py` (+8 -4) 📝 `tests/unit_tests/test_server_client.py` (+60 -19) </details> ### 📄 Description This PR allows the server to send callback events to the client. Limited to the invoke and batch end points for the time being. This PR does NOT include the client code to use the events (will be included in a separate PR to keep things simple). Also updating the serializer to use an interface -- placeholder for future code to accommodate user adding their own custom pydantic objects. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 00:20:12 -05:00
yindo closed this issue 2026-02-16 00:20:12 -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#337