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
def matches(target: str) -> boolParameters
ParamField
strNo description available.
Returns
ResponseField
boolThe result of the operation.
Uses
re.match
Used By
Source
View on GitHubpraisonaiagents/hooks/types.py at line 322