Skip to content

[8.15] [Security assistant] Fix Bedrock Langgraph ESQL tool calling (#189810)#189845

Merged
kibanamachine merged 1 commit intoelastic:8.15from
kibanamachine:backport/8.15/pr-189810
Aug 3, 2024
Merged

[8.15] [Security assistant] Fix Bedrock Langgraph ESQL tool calling (#189810)#189845
kibanamachine merged 1 commit intoelastic:8.15from
kibanamachine:backport/8.15/pr-189810

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

…#189810)

## Summary

Addresses the Bedrock portion of elastic#189771.

When using the Bedrock connector and asking the AI Assistant ES|QL generation questions, the AI Assistant is now consistently using the `ESQLKnowledgeBaseTool` and responding with correct ES|QL syntax. This is an example of a [successful trace](https://smith.langchain.com/o/b739bf24-7ba4-4994-b632-65dd677ac74e/projects/p/34f01a8b-e9a5-4df6-8cc2-163960220718?timeModel=%7B%22duration%22%3A%227d%22%7D&peek=9b7d5f31-c98b-4f63-bb9b-b2df95863218).

![ma](https://github.com/user-attachments/assets/1e173e00-8c9e-4a40-ac2e-a2ee36ae57fa)

(cherry picked from commit 83490a0)
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @patrykkopycinski

@kibanamachine kibanamachine merged commit 6c9cc62 into elastic:8.15 Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants