dependency_injection
autogen.tools.dependency_injection.get_context_params
get_context_params
Gets the names of the context parameters in a function signature.
Parameters:Name | Description |
---|---|
func | The function to inspect for context parameters. Type: Callable[..., Any] |
subclass | The subclass to search for. Type: type[autogen.tools.BaseContext] | type[autogen.tools.ChatContext] |
Type | Description |
---|---|
list[str] | A list of parameter names that are instances of the specified subclass. |