Before adding memories, make sure to configure the API key in your environment.

You can add memories to a graph by using the add method.

  from circlemind import Circlemind

  # Initialize the client
  client = Circlemind()

  # Add a memory
  client.add(
    memory="Sophie enjoys hiking in the Italian Alps.",
    graph_id="customer-id-123"
  )

The graph_id is an optional parameter. If not set, it defaults to the default graph.