Install
What’s included
| Function | Purpose |
|---|---|
create_search_tool | Async function tool that searches Synap memory |
create_store_tool | Async function tool that stores a memory in Synap |
Quick start
Tool signatures
synap_search(query: str, max_results: int = 5) -> list[dict]
Returns a list of memory objects: [{"content": "...", "type": "fact", "confidence": 0.91}, ...]
synap_store(content: str, memory_type: str = "fact") -> dict
Stores a new memory and returns {"status": "stored", "id": "..."}.
Scoping
Passcustomer_id to scope memories to an organization, or omit it for user-only scope:
Next steps
Pydantic AI
Type-safe deps and tools for Pydantic AI agents.
AutoGen
BaseTool implementations for AutoGen agents.