Add supports_universal_context for OpenAILLMService subclasses so that we can gradually roll out support for universal LLMContext in a controlled manner.

Also update `get_chat_completions()` implementations with the new argument type.
This commit is contained in:
Paul Kompfner
2025-08-19 13:07:56 -04:00
parent 566af71862
commit 9de2bd61a9
18 changed files with 245 additions and 57 deletions

View File

@@ -190,3 +190,12 @@ class GrokLLMService(OpenAILLMService):
user = OpenAIUserContextAggregator(context, params=user_params)
assistant = OpenAIAssistantContextAggregator(context, params=assistant_params)
return GrokContextAggregatorPair(_user=user, _assistant=assistant)
@property
def supports_universal_context(self) -> bool:
"""Check if this service supports universal LLMContext.
Returns:
False, as GrokLLMService does not yet support universal LLMContext.
"""
return False