get_context_params

get_context_params(func: Callable[..., Any], subclass: type[autogen.tools.BaseContext] | type[autogen.tools.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[autogen.tools.BaseContext] | type[autogen.tools.ChatContext]
Returns:
TypeDescription
list[str]A list of parameter names that are instances of the specified subclass.