-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Assistant] Migrates to LangGraph and adds KB Tools #184554
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0b03e98
Migrates to LangSmith and adds KB Tools
spong b888052
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong de9d530
yarn.lock update
spong b862a29
Port title generation into langgraph node
spong 0b0bdab
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong 6451142
yarn.lock update
spong 14b0c65
Primes initial context with required kb docs and updates kb retrieval…
spong 62754d3
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong 83cdc37
Remove chat title generation node
spong b04da0e
yarn.lock update
spong c564e2e
Merge branch 'main' into kb-tools
spong 5bc866b
yarn.lock update2
spong 8477e13
fix types
patrykkopycinski 7a92a86
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong d9a5b54
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong c3dc271
test
patrykkopycinski 800ffc7
Merge branch 'main' of github.com:elastic/kibana into kb-tools
patrykkopycinski 249339f
fix
patrykkopycinski 684a5f1
Fix tests missing logger
spong 837c29c
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong 81ec705
Merge branch 'main' into kb-tools
kibanamachine 5fca287
Update langgraph and remove TS5 workaround
spong d38107d
Update import
spong 3d2c140
Merge branch 'main' of github.com:elastic/kibana into kb-tools
spong 269f8aa
Merge branch 'main' into kb-tools
spong f9505d9
Skip flakey test
spong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should extend the filter to support empty("shared") KBs, which are available for all users in the space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working through adding the different permutations of kb mock data today for #184974 and will use that to start crafting tests to cover these scenarios.
I want to take a moment and rethink how we're categorizing/namespacing content using
kbResource
though to see if there will be any issues here. For now I've kept things matching the original KB implementation, and just introduced theuser
kbResource for all user created entries. We will also need to captureentryType
somewhere to differentiate between raw text content and index-backed entries. Would be nice to have a catch-alltags
for organization and labeling too.I will start thinking through more of this early next week as I get back to plumbing through the remainder of the kbDataClient methods and REST API's, but if you have any thoughts here I would love to hear them 🙂