> ## Documentation Index
> Fetch the complete documentation index at: https://docs.negentro.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Memory-Powered Agent SDK (TypeScript, Python, LangChain)

> Standardized SDK integrations for autonomous agent frameworks.

## LangChain Adapter Integration

```python Python — LangChain Adapter theme={null}
from piyapi_langchain import PiyAPIMemoryRetriever

retriever = PiyAPIMemoryRetriever(
    api_key="sk_live_your_api_key_here",
    top_k=5
)

# Retrieve relevant documents as LangChain Document objects
docs = retriever.get_relevant_documents("user database preferences")
for doc in docs:
    print(doc.page_content, doc.metadata)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.