search • AI Agent SDK

search: Search entries by query.

search

Method

</div>

This is a method of the LearnProtocol class in the protocols module.

Search entries by query.

Signature

python
def search(query: str, limit: int) -> List[Dict[str, Any]]

Parameters

ParamField str

Search query string

ParamField int

Maximum results to return

Returns

ResponseField List[Dict[str, Any]]

List of matching entries

Used By

Source

View on GitHub

praisonaiagents/memory/learn/protocols.py at line 61