Skip to content

Commit 7c527ab

Browse files
committed
bug #54 fix: array shape (OskarStark)
This PR was merged into the main branch. Discussion ---------- fix: array shape | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | | Issues | | License | MIT Cherry picking php-llm/llm-chain#367 Commits ------- 62ede30 fix: array shape (#367)
2 parents a71f5d6 + 62ede30 commit 7c527ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/src/Contract/Normalizer/Message/AssistantMessageNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getSupportedTypes(?string $format): array
3838
/**
3939
* @param AssistantMessage $data
4040
*
41-
* @return array{role: 'assistant', content: string}
41+
* @return array{role: 'assistant', content?: string, tool_calls?: array<array<string, mixed>>}
4242
*/
4343
public function normalize(mixed $data, ?string $format = null, array $context = []): array
4444
{

0 commit comments

Comments
 (0)