Skip to content

Commit a0450a0

Browse files
committed
bug #560 [Agent]Brave] Fix validation attribute for string parameter in tool (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Agent]Brave] Fix validation attribute for string parameter in tool | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | -- | License | MIT 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. Commits ------- 72562c1 Fix validation attribute for string parameter in Brave tool
2 parents 2cb277b + 72562c1 commit a0450a0

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)