Is Function Or Decorated • AI Agents Framework
is_function_or_decorated: Checks if the given object is a function or has a __call__ method.
is_function_or_decorated
Method
</div>
This is a method of the AgentsGenerator class in the agents_generator module.
Checks if the given object is a function or has a __call__ method.
Signature
def is_function_or_decorated(obj: Any) -> AnyParameters
ParamField
AnyThe object to be checked.
Returns
ResponseField
AnyTrue if the object is a function or has a __call__ method, False otherwise.
Uses
inspect.isfunction
Source
View on GitHubpraisonai/agents_generator.py at line 220