Skip to content

Commit d495591

Browse files
authored
fix(converse): parameterless tools (#28)
1 parent c6bfa2c commit d495591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schemas/Converse/Maps/ToolMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function map(array $tools): array
2121
'inputSchema' => [
2222
'json' => [
2323
'type' => 'object',
24-
'properties' => $tool->parametersAsArray(),
24+
'properties' => $tool->parametersAsArray() ?: (object) [],
2525
'required' => $tool->requiredParameters(),
2626
],
2727
],

0 commit comments

Comments
 (0)