diff --git a/coderd/x/chatd/chatloop/chatloop.go b/coderd/x/chatd/chatloop/chatloop.go index f019d752197..75de56b0bfc 100644 --- a/coderd/x/chatd/chatloop/chatloop.go +++ b/coderd/x/chatd/chatloop/chatloop.go @@ -1220,7 +1220,7 @@ func exclusiveToolPolicyResults( } func exclusiveToolMustRunAloneErrorMessage(toolName string) string { - return toolName + " must be called alone, without other tools in the same batch. Retry with only the " + toolName + " call." + return toolName + " must be called alone, without other tools in the same batch. If you need more information to feed into the " + toolName + " call, execute the other tools first, then retry with only the " + toolName + " call." } func exclusiveToolSkippedErrorMessage(toolName string) string { diff --git a/coderd/x/chatd/chatloop/chatloop_run_internal_test.go b/coderd/x/chatd/chatloop/chatloop_run_internal_test.go index 393d7acbaeb..7b910efc081 100644 --- a/coderd/x/chatd/chatloop/chatloop_run_internal_test.go +++ b/coderd/x/chatd/chatloop/chatloop_run_internal_test.go @@ -505,7 +505,7 @@ func TestExclusiveToolPolicy_MixedBatchErrors(t *testing.T) { requireToolResultErrorMessage( t, results[0], - "advisor must be called alone, without other tools in the same batch. Retry with only the advisor call.", + "advisor must be called alone, without other tools in the same batch. If you need more information to feed into the advisor call, execute the other tools first, then retry with only the advisor call.", ) requireToolResultErrorMessage( t, @@ -559,12 +559,12 @@ func TestExclusiveToolPolicy_MultipleExclusive(t *testing.T) { requireToolResultErrorMessage( t, results[0], - "advisor must be called alone, without other tools in the same batch. Retry with only the advisor call.", + "advisor must be called alone, without other tools in the same batch. If you need more information to feed into the advisor call, execute the other tools first, then retry with only the advisor call.", ) requireToolResultErrorMessage( t, results[1], - "advisor must be called alone, without other tools in the same batch. Retry with only the advisor call.", + "advisor must be called alone, without other tools in the same batch. If you need more information to feed into the advisor call, execute the other tools first, then retry with only the advisor call.", ) }