🐫 CAMEL is an open-source community dedicated to finding the scaling laws of agents. We believe that studying these agents on a large scale offers valuable insights into their behaviors, capabilities, and potential risks. To facilitate research in this field, we implement and support various types of agents, tasks, prompts, models, and simulated environments.
# Raise an error if password is not set ifnotpassword: raiseValueError( "Environment variable SURREAL_PASSWORD is not set. " "Please set it before running." )
# Initialize the SurrealStorage instance with provided parameters storage=SurrealStorage( url=url, table=table, namespace=namespace, database=database, user=user, password=password, vector_dim=vector_dim, )
# Clear existing data in storage storage.clear()
# Print the current status after clearing print("[Step 1] After clear:",storage.status())
res=storage.client.query_raw( "SELECT * FROM lyz_tb WHERE payload.name = 'test_3';" )["result"][0]["result"][0]["id"].id print("[Step 3] Query Result ID for 'test_3':",res)
storage.delete(ids=[res]) print("[Step 4] After delete 'test_3':",storage.status())