Return the active plan for the current user and its usage metrics.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.get_user_plan_plan_get()
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.PlanResponse
Error Type |
Status Code |
Content Type |
models.SDKError |
4XX, 5XX |
*/* |
Retrieve the configuration details of a specific graph by its name.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.get_graph_configuration(graph_name="<value>")
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
graph_name |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.ConfigureResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Update the configuration details of a specific graph by its name.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.set_graph_configuration(graph_name="<value>", configure_request={
"domain": "agitated-cod.name",
"example_queries": "<value>",
"entity_types": [
"<value>",
],
})
# Handle response
print(res)
models.ConfigureResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Return the list of all existing graphs for the current user.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.list_graphs()
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.GraphListResponse
Error Type |
Status Code |
Content Type |
models.SDKError |
4XX, 5XX |
*/* |
Create a new graph
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.create_graph(graph_name="<value>", configure_request={
"domain": "liquid-godfather.org",
"example_queries": "<value>",
"entity_types": [
"<value>",
"<value>",
"<value>",
],
})
# Handle response
print(res)
models.ConfigureResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Delete the selected graph.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.delete_graph(graph_name="<value>")
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
graph_name |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
Any
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Generate a download URL for the graph in graphml format.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.download_graphml(graph_name="<value>")
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
graph_name |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.DownloadGraphResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Send a query request to the graph.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.query(graph_name="<value>", query_request={
"query": "<value>",
})
# Handle response
print(res)
models.QueryResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Return the status of an existing query request.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.get_query_status(graph_name="<value>", request_id="<id>", request_time=816039)
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
graph_name |
str |
✔️ |
N/A |
request_id |
str |
✔️ |
N/A |
request_time |
int |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.RequestStatus
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Create a new memory in the graph using raw text.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.add(graph_name="<value>", insert_request={
"memory": "<value>",
})
# Handle response
print(res)
models.InsertResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Create a new memory in the graph from files.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.add_from_files(graph_name="<value>", body_post_insert_files_graph_graph_name_files_post={
"files": [
{
"file_name": "example.file",
"content": open("example.file", "rb"),
},
{
"file_name": "example.file",
"content": open("example.file", "rb"),
},
],
})
# Handle response
print(res)
models.InsertResponse
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |
Return the status of an existing add request.
from circlemind_sdk import CirclemindSDK
import os
with CirclemindSDK(
api_key_header=os.getenv("CIRCLEMINDSDK_API_KEY_HEADER", ""),
) as circlemind_sdk:
res = circlemind_sdk.get_add_status(graph_name="<value>", request_id="<id>", request_time=877284)
# Handle response
print(res)
Parameter |
Type |
Required |
Description |
graph_name |
str |
✔️ |
N/A |
request_id |
str |
✔️ |
N/A |
request_time |
int |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.RequestStatus
Error Type |
Status Code |
Content Type |
models.HTTPValidationError |
422 |
application/json |
models.SDKError |
4XX, 5XX |
*/* |