Skip to content

Commit 430aa55

Browse files
authored
Apply suggestions from code review
1 parent 4955e40 commit 430aa55

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/platform/src/Bridge/VertexAi/Tests/Contract/AssistantMessageNormalizerTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public function testNormalize(AssistantMessage $message, array $expectedOutput)
4848
$this->assertSame($expectedOutput, $normalized);
4949
}
5050

51+
/**
52+
* @return iterable<string, array{
53+
* AssistantMessage,
54+
* array{text?: string, functionCall?: array{name: string, args?: mixed}}[]
55+
* }>
56+
*/
5157
public static function normalizeDataProvider(): iterable
5258
{
5359
yield 'assistant message' => [

src/platform/src/Bridge/VertexAi/Tests/Contract/UserMessageNormalizerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ public function testNormalizeBinaryContent(File $content, string $expectedMimeTy
6969
$this->assertStringStartsWith($expectedPrefix, $normalized[1]['inlineData']['data']);
7070
}
7171

72+
/**
73+
* @return iterable<string, array{0: File, 1: string, 2: string}>
74+
*/
7275
public static function binaryContentProvider(): iterable
7376
{
7477
yield 'image' => [Image::fromFile(\dirname(__DIR__, 5).'/tests/Fixtures/image.jpg'), 'image/jpeg', '/9j/'];

0 commit comments

Comments
 (0)