Skip to content

Commit 72562c1

Browse files
committed
Fix validation attribute for string parameter in Brave tool
Changed #[With(maximum: 500)] to #[With(maxLength: 500)] for the $query parameter since maximum is for numeric values while maxLength is for string length validation.
1 parent 2cb277b commit 72562c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agent/src/Toolbox/Tool/Brave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
* }>
4646
*/
4747
public function __invoke(
48-
#[With(maximum: 500)]
48+
#[With(maxLength: 500)]
4949
string $query,
5050
int $count = 20,
5151
#[With(minimum: 0, maximum: 9)]

0 commit comments

Comments
 (0)