The Circlemind Python SDK provides a convenient interface to manage and query memories directly from Python applications. With this SDK, you can store, configure, and retrieve contextual information in the form of “memories” using simple method calls.
Configure the CredentialsCirclemind requires an API key. If you don’t have an API key, you can request one by emailing us at support@circlemind.coOnce you have an API key, export it as an environment variable in your terminal.
Copy
Ask AI
export CIRCLEMIND_API_KEY="your_api_key_here"
Initialize the ClientTo start using the Circlemind SDK, initialize the Circlemind class.
Copy
Ask AI
from circlemind import Circlemindclient = Circlemind()
Basic Usage
Add a Memory
Copy
Ask AI
client.add(memory="Sophie enjoys hiking in the Italian Alps.")
Query Memories
Copy
Ask AI
res = client.query(query="Where does Sophie like to hike?")print(res.response)