gnosis / prediction-market-agent

GNU Lesser General Public License v3.0
35 stars 6 forks source link

replace Predict with Tavily/Perplexity call #282

Open evangriffiths opened 5 months ago

evangriffiths commented 5 months 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 5 months ago

hey, can I pick it?

kongzii commented 5 months 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 5 months ago

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

evangriffiths commented 4 months ago

@vaishnavi-2901 do you plan on taking this issue? If not I'll take a look at it next

evangriffiths commented 3 months ago

This might be more interesting now that we can combine this agent with a goal manager (e.g. "Look at some recent news stories and see if there are any markets relating to them")