Skip to main content

is_function_or_decorated

Method
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) -> Any

Parameters

obj
Any
required
The object to be checked.

Returns

Returns
Any
True if the object is a function or has a call method, False otherwise.