from pipecat.services.openai.llm import OpenAILLMService import inspect # Get the create_context_aggregator method method = getattr(OpenAILLMService, 'create_context_aggregator', None) if method: print("Method found!") print(f"Type: {type(method)}") sig = inspect.signature(method) print(f"Signature: {sig}") # Try to see what params it takes for name, param in sig.parameters.items(): print(f" {name}: {param.annotation if param.annotation is not inspect.Parameter.empty else 'Any'} = {param.default if param.default is not inspect.Parameter.empty else 'REQUIRED'}") else: print("Method NOT found!") # Check if it's created by a metaclass or __init_subclass__ for cls in OpenAILLMService.__mro__: if hasattr(cls, 'create_context_aggregator'): print(f" Found in {cls.__name__}") m = getattr(cls, 'create_context_aggregator') print(f" Type: {type(m)}")