API to get agent and tool responses

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.15.0

Describe the issue:
I have an agent that uses custom agent tools and I the api to get the information that I get from the dashboard assistant when I click on the link “How was this generated”

Configuration:

Relevant Logs or Screenshots: