[PR #174] [MERGED] Unpack input recursively, to ensure that sub-types that are expected … #401

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langserve/pull/174
Author: @nfcampos
Created: 11/6/2023
Status: Merged
Merged: 11/6/2023
Merged by: @eyurtsev

Base: mainHead: nc/unpack-input-recurse


📝 Commits (2)

  • f59396d Unpack input recursively, to ensure that sub-types that are expected to remain as BaseModel do
  • 896a61c x

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 langserve/server.py (+5 -1)

📄 Description

…to remain as BaseModel do

This fixes input types such as

class AgentInput(BaseModel):
    messages: Sequence[AnyMessage] = Field(..., extra={"widget": {"type": "chat"}})

🔄 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/174 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 11/6/2023 **Status:** ✅ Merged **Merged:** 11/6/2023 **Merged by:** [@eyurtsev](https://github.com/eyurtsev) **Base:** `main` ← **Head:** `nc/unpack-input-recurse` --- ### 📝 Commits (2) - [`f59396d`](https://github.com/langchain-ai/langserve/commit/f59396d5dd5c1b5cc18b3aae7192685c0cfb298a) Unpack input recursively, to ensure that sub-types that are expected to remain as BaseModel do - [`896a61c`](https://github.com/langchain-ai/langserve/commit/896a61c321823353ff65fde62b3cc4e5a67c1096) x ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `langserve/server.py` (+5 -1) </details> ### 📄 Description …to remain as BaseModel do This fixes input types such as ``` class AgentInput(BaseModel): messages: Sequence[AnyMessage] = Field(..., extra={"widget": {"type": "chat"}}) ``` --- <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:26 -05:00
yindo closed this issue 2026-02-16 00:20:26 -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#401