julep-ai / julep

A new DSL and server for AI agents and multi-step tasks
https://julep.ai
Apache License 2.0
2.45k stars 898 forks source link

[Bug]: brave search json output should be parsed #771

Open creatorrr opened 1 day ago

creatorrr commented 1 day ago

📜 Description

Currently it returns:

{
  "result": "[{\"title\": \"London - Wikipedia\", \"link\": \"https://en.wikipedia.org/wiki/London\", \"snippet\": \"<strong>London</strong> is the capital and largest city of both England and the United Kingdom, with a population of 8,866,180 in 2022. The wider metropolitan area is the largest in Western Europe, with a population of 14.9 million. <strong>London</strong> stands on the River Thames in southeast England, at the head of a 50-mile ...\"}, {\"title\": \"Visit London - We are London's Official Visitor Guide\", \"link\": \"https://www.visitlondon.com/\", \"snippet\": \"Discover your ultimate guide to <strong>London</strong>. From the best activities in the city to top restaurants, bars and hotels, explore what&#x27;s on in <strong>London</strong> today.\"}, {\"title\": \"Greater London Authority\", \"link\": \"https://www.london.gov.uk/home-page\", \"snippet\": \"Official website of Mayor of <strong>London</strong>, Sadiq Khan, and the 25 <strong>London</strong> Assembly Members. Policy, news, jobs, contacts.\"}]"
}

It should instead return a fully typed json object

👟 Reproduction steps

No response

👀 Have you spent some time to check if this bug has been raised before?

aarya-16 commented 4 hours ago

@creatorrr I worked on this in PR #779