diff --git a/ee/lib/gitlab/llm/chain/tools/explain_code/executor.rb b/ee/lib/gitlab/llm/chain/tools/explain_code/executor.rb index 3d1ab6c1df4fbb82a40535e4e9963357a81611f7..be39e2298656aec0b75a476888d0f66044acc931 100644 --- a/ee/lib/gitlab/llm/chain/tools/explain_code/executor.rb +++ b/ee/lib/gitlab/llm/chain/tools/explain_code/executor.rb @@ -9,7 +9,7 @@ class Executor < Tool include Concerns::AiDependent NAME = 'ExplainCode' - DESCRIPTION = 'Useful tool to explain code snippets.' + DESCRIPTION = 'Useful tool to explain code snippets and blocks.' RESOURCE_NAME = 'explain code answer' PROVIDER_PROMPT_CLASSES = { anthropic: ::Gitlab::Llm::Chain::Tools::ExplainCode::Prompts::Anthropic, diff --git a/ee/lib/gitlab/llm/chain/tools/json_reader/executor.rb b/ee/lib/gitlab/llm/chain/tools/json_reader/executor.rb index edec86113181bfd53482ab894ba1aa828bf1f740..e0e86b63085f2a529b472841d6f0dd14e3bff850 100644 --- a/ee/lib/gitlab/llm/chain/tools/json_reader/executor.rb +++ b/ee/lib/gitlab/llm/chain/tools/json_reader/executor.rb @@ -12,7 +12,8 @@ class Executor < Tool TextUtils = Gitlab::Llm::Chain::Utils::TextProcessing NAME = 'Resource Reader' - DESCRIPTION = 'Useful tool when you need to get information or ask questions about specific resource. ' \ + DESCRIPTION = 'Useful tool when you need to get information or ask questions about specific resource ' \ + 'that was already identified. ' \ 'Action Input for this tools always starts with: `data`' # anthropic token limit: diff --git a/ee/lib/gitlab/llm/chain/tools/summarize_comments/executor.rb b/ee/lib/gitlab/llm/chain/tools/summarize_comments/executor.rb index 36ee05852b35fd123b3c01a19e2f4d9b9a4dd0f0..13dc095c4733a1502bf33f29556c2bb1d9b6f7e8 100644 --- a/ee/lib/gitlab/llm/chain/tools/summarize_comments/executor.rb +++ b/ee/lib/gitlab/llm/chain/tools/summarize_comments/executor.rb @@ -8,7 +8,7 @@ module SummarizeComments class Executor < Tool NAME = "SummarizeComments" DESCRIPTION = "This tool is useful when you need to create a summary of all notes, " \ - "comments or discussions on a given resource." + "comments or discussions on a given, identified resource." def perform return wrong_resource unless resource.is_a?(Noteable) diff --git a/ee/spec/lib/gitlab/llm/chain/tools/explain_code/executor_spec.rb b/ee/spec/lib/gitlab/llm/chain/tools/explain_code/executor_spec.rb index a3e700c74fb4071f66b2659be4046bd5230df1ed..42e2c8e14fab35bbc0928440c50ba1790dedbae0 100644 --- a/ee/spec/lib/gitlab/llm/chain/tools/explain_code/executor_spec.rb +++ b/ee/spec/lib/gitlab/llm/chain/tools/explain_code/executor_spec.rb @@ -23,7 +23,7 @@ describe '#description' do it 'returns tool description' do - desc = 'Useful tool to explain code snippets.' + desc = 'Useful tool to explain code snippets and blocks.' expect(described_class::DESCRIPTION).to include(desc) end diff --git a/ee/spec/lib/gitlab/llm/chain/tools/json_reader/executor_spec.rb b/ee/spec/lib/gitlab/llm/chain/tools/json_reader/executor_spec.rb index 3c487aa743d298c89361d5603db8220fbfa0a7b6..8debc8ecbc44e3e1033a20bb79cc8952ce71f682 100644 --- a/ee/spec/lib/gitlab/llm/chain/tools/json_reader/executor_spec.rb +++ b/ee/spec/lib/gitlab/llm/chain/tools/json_reader/executor_spec.rb @@ -43,7 +43,8 @@ describe '#description' do it 'returns tool description' do expect(described_class::DESCRIPTION) - .to include('Useful tool when you need to get information or ask questions about specific resource. ' \ + .to include('Useful tool when you need to get information or ask questions about specific ' \ + 'resource that was already identified. ' \ 'Action Input for this tools always starts with: `data`') end end diff --git a/ee/spec/lib/gitlab/llm/chain/tools/summarize_comments/executor_spec.rb b/ee/spec/lib/gitlab/llm/chain/tools/summarize_comments/executor_spec.rb index 33226eaf3ad968ea2fdf22aee96fbf26a2fe2e04..f9813a934349beb1724874f02e4bb9effe12d7b8 100644 --- a/ee/spec/lib/gitlab/llm/chain/tools/summarize_comments/executor_spec.rb +++ b/ee/spec/lib/gitlab/llm/chain/tools/summarize_comments/executor_spec.rb @@ -15,7 +15,7 @@ describe '#description' do it 'returns tool description' do desc = 'This tool is useful when you need to create a summary ' \ - 'of all notes, comments or discussions on a given resource.' + 'of all notes, comments or discussions on a given, identified resource.' expect(described_class::DESCRIPTION).to include(desc) end