devika icon indicating copy to clipboard operation
devika copied to clipboard

Better response parsing

Open Parth-Jain-2002 opened this issue 1 year ago • 2 comments

  1. Currently, in response parsing, it expects from the LLM to send the message with proper JSON format without any other content. This can sometimes lead to many response failures and multiple API calls to the LLM.

image Some response with this structure would fail the parsing

  1. In this PR, have modified that logic on how the response is parsed

Parth-Jain-2002 avatar Apr 07 '24 04:04 Parth-Jain-2002

@ARajgor Can you check this PR and merge it?

Parth-Jain-2002 avatar Apr 11 '24 05:04 Parth-Jain-2002

make one file called utils or services on /agent folder and have a common function for all the responses. We don't want to write same function to all files

ARajgor avatar Apr 17 '24 08:04 ARajgor