mirror of
https://github.com/symfony/ai-scaleway-platform.git
synced 2026-03-23 23:32:07 +01:00
Decouple Platform Token Usage handling from Agent by introducing new interface
This commit is contained in:
@@ -49,4 +49,9 @@ final class ResultConverter implements ResultConverterInterface
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
public function getTokenUsageExtractor(): null
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,11 @@ final class ResultConverter implements ResultConverterInterface
|
||||
return 1 === \count($choices) ? $choices[0] : new ChoiceResult(...$choices);
|
||||
}
|
||||
|
||||
public function getTokenUsageExtractor(): null
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
private function convertStream(RawResultInterface $result): \Generator
|
||||
{
|
||||
$toolCalls = [];
|
||||
|
||||
Reference in New Issue
Block a user