gnosis / prediction-market-agent

GNU Lesser General Public License v3.0
15 stars 4 forks source link

replace Predict with Tavily/Perplexity call #282

Open evangriffiths opened 1 week ago

evangriffiths commented 1 week ago

@kongzii says "give it both Predict and Tavily tools"

@evangriffiths says "give one agent just Predict and one just Tavily, and deploy both, and compare

@gabrielfior says "don't care, just get on with the meeting"

vaishnavi-2901 commented 1 week ago

hey, can I pick it?

kongzii commented 1 week ago

@vishu1089 Sure! ❤️

To describe this task in more detail.

I think it can be split into 2 PRs:

1)

replace Predict with Tavily/Perplexity call

We already have Tavily integration in another project, so I think it will be cool to add Perplexity integration in this one, so later we can compare and use just one of them or keep both.

However I never worked with Perplexity before, so you need to check out how it works at https://www.perplexity.ai/. See if they even have an API and if they have a free trier (if there is no free trier, you can ping us, and we will set up a paid one).

What needs to be done here is similar to the CallAPI PR you are working on atm; there needs to be a new Function-based class that will accept a single argument (market's question) and output a string with the research about the question. And that research is output from Perplexity. This is how it looks on their web:

Screenshot by Dropbox Capture

2)

"give one agent just Predict and one just Tavily, and deploy both, and compare

If you are up to it, after (1) is done I can provide more details about this one (not sure right now how/if it should be implemented). It's Evan's idea, but he is on vacation for a few days.


Feel free to ping me if you need more details or anything! 🙏

vaishnavi-2901 commented 1 week ago

sure, Will revert on it as early as possible. Meanwhile please review another PR opened by me