Handle tools with no resource name in discoverability prompt
What does this MR do and why?
Handle tools with no resource name in discoverability prompt
Currently, because Gitlab::Llm::Chain::Tools::JsonReader::Executor
has
RESOURCE_NAME
set to the empty string, we were generating the
following in the discoverability prompt: "You have access to the following
GitLab resources: , issues, documentation answers, epics, ci editor answers".
This change filters out empty resource names.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.