Closed evangriffiths closed 1 month ago
[!CAUTION]
Review failed
The head commit changed during the review from ef87ea72e2b56e08869040752f42e5906cf4fbb2 to 106b1bff6649a54e431537499de17995ca9ff15f.
The changes in this pull request introduce several new classes and a static method for handling responses from the Tavily service. The TavilyResult
, TavilyResponse
, and TavilyResponseModel
classes encapsulate the structure of Tavily responses and facilitate database interactions. The tavily_search
function has been modified to accept a new days
parameter, enhancing its functionality. Additionally, classes have been removed from the tavily_storage
module, which now imports these classes from tavily_models
. The save
and find
methods in TavilyStorage
have been updated to utilize the new parameter.
File Path | Change Summary |
---|---|
.../tavily/tavily_models.py |
Added classes: TavilyResult , TavilyResponse , TavilyResponseModel . Added static method from_model(...) . |
.../tavily/tavily_search.py |
Updated tavily_search and _tavily_search methods to include a new days parameter. Added method get_related_news_since(...) . Adjusted import statements for TavilyStorage . |
.../tavily/tavily_storage.py |
Removed classes: TavilyResult , TavilyResponse , TavilyResponseModel . Updated save and find methods to include days parameter. |
TavilyResult
class and the tavily_search
function to improve data retrieval operations, which directly relates to the new classes and methods introduced in the main PR for handling Tavily responses.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
TavilyResponseModel
table (and in the postgres DB too!). Have tested, and this is backwards compatible, so agents shouldn't break while PMA is using current main version of PMAT!tavily_storage
directory ->tavily
(as it also includes search utils)get_related_news_since
util function