Deprecate expect_stripped_words option from LLMAssistantAggregatorParams, when used with the newer LLMAssistantAggregator, which now handles word spacing automatically.

This commit does not change how it works in the older `LLMAssistantContextAggregator`.
This commit is contained in:
Paul Kompfner
2025-10-30 15:48:15 -04:00
parent 5e00133e64
commit ac5734d0ed
18 changed files with 130 additions and 133 deletions

View File

@@ -65,9 +65,7 @@ class TestLangchain(unittest.IsolatedAsyncioTestCase):
self.mock_proc = self.MockProcessor("token_collector")
context = LLMContext()
context_aggregator = LLMContextAggregatorPair(
context, assistant_params=LLMAssistantAggregatorParams(expect_stripped_words=False)
)
context_aggregator = LLMContextAggregatorPair(context)
pipeline = Pipeline(
[context_aggregator.user(), proc, self.mock_proc, context_aggregator.assistant()]