Skip to content
Discussion options

You must be logged in to vote

Hi,

The BedrockLLMAgent does not support this, it uses the tools to generate the final response only.
If you need to be sure that in 100% of cases the response is a proper json you should create a custom agent (you can essentially copy all the code from BedrockLLMAgent) and then just add a new tool that is the response format you need.
Alternatively you still ask the LLM to provide a JSON like this example.

Also, you could create an issue with this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cornelcroi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants