mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-18 10:54:29 -04:00
Add endpoint descriptions to add_routes #111
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @annabelleg on GitHub (Jan 30, 2024).
Originally assigned to: @eyurtsev on GitHub.
With normal FastAPI routes, the function docstrings automatically become the function's description in the Swagger docs, or you can pass in a summary/description/name/etc.
It would be useful to either enable this with
add_routesautomatically or pass in adescriptionas a parameter.The description could be appended to the auto-generated description for each
invoke/batch/... endpoint (e.g.,Given a query, search the internet for a response. Invoke the runnable with the given input and config.)@eyurtsev commented on GitHub (Feb 1, 2024):
I think that this is already the case if using pydantic 1? which version of pydantic are you on?
@eyurtsev commented on GitHub (Feb 22, 2024):
Closing issue due to lack of follow up