get_context_params

get_context_params(func: Callable[..., Any], subclass: type[BaseContext] | type[ChatContext]) -> list[str]

Gets the names of the context parameters in a function signature.

Parameters:
NameDescription
funcThe function to inspect for context parameters.

Type: Callable[…, Any]
subclassThe subclass to search for.

Type: type[BaseContext] | type[ChatContext]
Returns:
TypeDescription
list[str]A list of parameter names that are instances of the specified subclass.