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

Parameters

Any
required
The object to be checked.

Returns

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

Uses

  • inspect.isfunction

Source

View on GitHub

praisonai/agents_generator.py at line 220