Skip to content

Commit 7d53157

Browse files
committed
fix: removes unnecessary Tool type validation
1 parent 3eb5279 commit 7d53157

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Tools/DTO/Tool.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ public function toArray(): array
176176
*/
177177
public static function fromArray(array $array): self
178178
{
179-
static::validateFromArrayData($array, [self::KEY_TYPE]);
180-
181179
// Check which properties are set to determine how to construct the Tool
182180
if (isset($array[self::KEY_FUNCTION_DECLARATIONS])) {
183181
$declarations = array_map(function (array $declarationData) {

0 commit comments

Comments
 (0)