Deprecate OpenAILLMContext and associated things

This commit is contained in:
Paul Kompfner
2025-12-18 20:36:34 -05:00
parent f6785de120
commit 9b6f5853cf
18 changed files with 377 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
- `OpenAILLMContext` and its associated things (context aggregators, etc.) are now deprecated in favor of the universal `LLMContext` and its associated things.
From the developer's point of view, switching to using `LLMContext` machinery will usually be a matter of going from this:
```python
context = OpenAILLMContext(messages, tools)
context_aggregator = llm.create_context_aggregator(context)
```
To this:
```
context = LLMContext(messages, tools)
context_aggregator = LLMContextAggregatorPair(context)
```