Skip to content

Commit

Permalink
Merge pull request #484 from smskin/patch-2
Browse files Browse the repository at this point in the history
Changed type of the description prop to nullable
  • Loading branch information
gehrisandro authored Nov 12, 2024
2 parents 52c4ced + 92543d2 commit f9dc0e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
final class AssistantResponseToolFunctionFunction implements ResponseContract
{
/**
* @use ArrayAccessible<array{description: string, name: string, parameters: array<string, mixed>}>
* @use ArrayAccessible<array{description: string|null, name: string, parameters: array<string, mixed>}>
*/
use ArrayAccessible;

Expand All @@ -24,7 +24,7 @@ final class AssistantResponseToolFunctionFunction implements ResponseContract
* @param array<string, mixed> $parameters
*/
private function __construct(
public string $description,
public string|null $description,
public string $name,
public array $parameters,
) {}
Expand Down

0 comments on commit f9dc0e0

Please sign in to comment.