diff --git a/src/Responses/Threads/Runs/Steps/Delta/ThreadRunStepDeltaResponse.php b/src/Responses/Threads/Runs/Steps/Delta/ThreadRunStepDeltaResponse.php index 9b7d20f4..8490d7b6 100644 --- a/src/Responses/Threads/Runs/Steps/Delta/ThreadRunStepDeltaResponse.php +++ b/src/Responses/Threads/Runs/Steps/Delta/ThreadRunStepDeltaResponse.php @@ -21,7 +21,7 @@ final class ThreadRunStepDeltaResponse implements ResponseContract use Fakeable; private function __construct( - public string $id, + public ?string $id, public string $object, public ThreadRunStepDeltaObject $delta, ) { @@ -35,7 +35,7 @@ private function __construct( public static function from(array $attributes): self { return new self( - $attributes['id'], + $attributes['id'] ?? null, $attributes['object'], ThreadRunStepDeltaObject::from($attributes['delta']), ); diff --git a/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunction.php b/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunction.php index ac171aa8..78e36bb0 100644 --- a/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunction.php +++ b/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunction.php @@ -21,7 +21,7 @@ final class ThreadRunStepResponseFunction implements ResponseContract use Fakeable; private function __construct( - public string $name, + public ?string $name, public string $arguments, public ?string $output, ) { @@ -35,7 +35,7 @@ private function __construct( public static function from(array $attributes): self { return new self( - $attributes['name'], + $attributes['name'] ?? null, $attributes['arguments'], $attributes['output'] ?? null, ); diff --git a/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunctionToolCall.php b/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunctionToolCall.php index 4f221b55..e602561c 100644 --- a/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunctionToolCall.php +++ b/src/Responses/Threads/Runs/Steps/ThreadRunStepResponseFunctionToolCall.php @@ -24,7 +24,7 @@ final class ThreadRunStepResponseFunctionToolCall implements ResponseContract * @param 'function' $type */ private function __construct( - public string $id, + public ?string $id, public string $type, public ThreadRunStepResponseFunction $function, ) { @@ -38,7 +38,7 @@ private function __construct( public static function from(array $attributes): self { return new self( - $attributes['id'], + $attributes['id'] ?? null, $attributes['type'], ThreadRunStepResponseFunction::from($attributes['function']), );