Skip to content

Commit

Permalink
Update AssistantResponseToolFunctionFunction.php
Browse files Browse the repository at this point in the history
Changed type of the description prop to nullable
  • Loading branch information
smskin authored Oct 7, 2024
1 parent 288325a commit 92543d2
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 92543d2

Please sign in to comment.