You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we change the return type to a TypedDict or a pydantic model? The fields would be more explicit this way. At least, common fields such as title and body should be documented.
The text was updated successfully, but these errors were encountered:
Recently, I've been using this package to write a RAG application, however, I need to actually run the lib to know the response fields.
The current return type of
.text()
etc, isDict
:duckduckgo_search/duckduckgo_search/duckduckgo_search_async.py
Line 181 in fce7fab
duckduckgo_search/duckduckgo_search/duckduckgo_search_async.py
Line 192 in fce7fab
which is too generic for the users and linters.
Describe the solution you'd like
Can we change the return type to a
TypedDict
or a pydantic model? The fields would be more explicit this way. At least, common fields such astitle
andbody
should be documented.The text was updated successfully, but these errors were encountered: