langchain.tools.base.ToolMetaclass¶
class langchain.tools.base.ToolMetaclass(name: str, bases: Tuple[Type, ...], dct: dict)[source]¶
Metaclass for BaseTool to ensure the provided args_schema
doesn’t silently ignore.
Create the definition of the new tool class.
Methods
__init__(*args, **kwargs)
mro()
Return a type's method resolution order.
register(subclass)
Register a virtual subclass of an ABC.
__init__(*args, **kwargs)¶
mro()¶
Return a type’s method resolution order.
register(subclass)¶
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.