Decouple Platform Token Usage handling from Agent by introducing new interface

This commit is contained in:
Christopher Hertel
2025-12-12 18:10:54 +01:00
parent 24c138e4a9
commit a1f5cda0a1
2 changed files with 10 additions and 0 deletions

View File

@@ -49,4 +49,9 @@ final class ResultConverter implements ResultConverterInterface
),
);
}
public function getTokenUsageExtractor(): null
{
return null;
}
}

View File

@@ -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 = [];