get • AI Agent SDK

get: Get a specific item by ID.

get

Method

</div>

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

Get a specific item by ID.

Signature

python
def get(item_id: str) -> Optional[SearchResultItem]

Parameters

ParamField str

ID of the item to retrieve **kwargs: Backend-specific options

Returns

ResponseField Optional[SearchResultItem]

SearchResultItem if found, None otherwise

Source

View on GitHub

praisonaiagents/knowledge/protocols.py at line 85