matches • AI Agent SDK

matches: Check if this hook matches the target (tool name, etc.).

matches

Method

</div>

This is a method of the HookDefinition class in the types module.

Check if this hook matches the target (tool name, etc.).

Signature

python
def matches(target: str) -> bool

Parameters

ParamField str

No description available.

Returns

ResponseField bool

The result of the operation.

Uses

  • re.match

Used By

Source

View on GitHub

praisonaiagents/hooks/types.py at line 322