All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeletePointInMemory | DELETE /memory/collections/{collection_id}/points/{memory_id} | Delete Point In Memory |
GetCollections | GET /memory/collections | Get Collections |
GetConversationHistory | GET /memory/conversation_history | Get Conversation History |
RecallMemoriesFromText | GET /memory/recall | Recall Memories From Text |
WipeCollections | DELETE /memory/collections | Wipe Collections |
WipeConversationHistory | DELETE /memory/conversation_history | Wipe Conversation History |
WipeMemoryPoints | DELETE /memory/collections/{collection_id}/points | Wipe Memory Points By Metadata |
WipeSingleCollection | DELETE /memory/collections/{collection_id} | Wipe Single Collection |
List<string> DeletePointInMemory (string collectionId, string memoryId)
Delete Point In Memory
Delete specific point in memory
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class DeletePointInMemoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
var collectionId = "collectionId_example"; // string |
var memoryId = "memoryId_example"; // string |
try
{
// Delete Point In Memory
List<string> result = apiInstance.DeletePointInMemory(collectionId, memoryId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.DeletePointInMemory: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete Point In Memory
ApiResponse<List<string>> response = apiInstance.DeletePointInMemoryWithHttpInfo(collectionId, memoryId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.DeletePointInMemoryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | string | ||
memoryId | string |
List
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CollectionsList GetCollections ()
Get Collections
Get list of available collections
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetCollectionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
try
{
// Get Collections
CollectionsList result = apiInstance.GetCollections();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.GetCollections: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Collections
ApiResponse<CollectionsList> response = apiInstance.GetCollectionsWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.GetCollectionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConversationHistory GetConversationHistory ()
Get Conversation History
Get the specified user's conversation history from working memory
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class GetConversationHistoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
try
{
// Get Conversation History
ConversationHistory result = apiInstance.GetConversationHistory();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.GetConversationHistory: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Conversation History
ApiResponse<ConversationHistory> response = apiInstance.GetConversationHistoryWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.GetConversationHistoryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MemoryRecall RecallMemoriesFromText (string text, int? k = null)
Recall Memories From Text
Search k memories similar to given text.
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class RecallMemoriesFromTextExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
var text = "text_example"; // string | Find memories similar to this text.
var k = 100; // int? | How many memories to return. (optional) (default to 100)
try
{
// Recall Memories From Text
MemoryRecall result = apiInstance.RecallMemoriesFromText(text, k);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.RecallMemoriesFromText: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Recall Memories From Text
ApiResponse<MemoryRecall> response = apiInstance.RecallMemoriesFromTextWithHttpInfo(text, k);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.RecallMemoriesFromTextWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Find memories similar to this text. | |
k | int? | How many memories to return. | [optional] [default to 100] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<string> WipeCollections ()
Wipe Collections
Delete and create all collections
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class WipeCollectionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
try
{
// Wipe Collections
List<string> result = apiInstance.WipeCollections();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeCollections: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Wipe Collections
ApiResponse<List<string>> response = apiInstance.WipeCollectionsWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeCollectionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
List
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<string> WipeConversationHistory ()
Wipe Conversation History
Delete the specified user's conversation history from working memory
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class WipeConversationHistoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
try
{
// Wipe Conversation History
List<string> result = apiInstance.WipeConversationHistory();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeConversationHistory: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Wipe Conversation History
ApiResponse<List<string>> response = apiInstance.WipeConversationHistoryWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeConversationHistoryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
List
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<string> WipeMemoryPoints (string collectionId, Object? body = null)
Wipe Memory Points By Metadata
Delete points in memory by filter
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class WipeMemoryPointsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
var collectionId = "collectionId_example"; // string |
var body = null; // Object? | (optional)
try
{
// Wipe Memory Points By Metadata
List<string> result = apiInstance.WipeMemoryPoints(collectionId, body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeMemoryPoints: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Wipe Memory Points By Metadata
ApiResponse<List<string>> response = apiInstance.WipeMemoryPointsWithHttpInfo(collectionId, body);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeMemoryPointsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | string | ||
body | Object? | [optional] |
List
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<string> WipeSingleCollection (string collectionId)
Wipe Single Collection
Delete and recreate a collection
using System.Collections.Generic;
using System.Diagnostics;
using CheshireCatApi.Api;
using CheshireCatApi.Client;
using CheshireCatApi.Model;
namespace Example
{
public class WipeSingleCollectionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
var apiInstance = new MemoryApi(config);
var collectionId = "collectionId_example"; // string |
try
{
// Wipe Single Collection
List<string> result = apiInstance.WipeSingleCollection(collectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeSingleCollection: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Wipe Single Collection
ApiResponse<List<string>> response = apiInstance.WipeSingleCollectionWithHttpInfo(collectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling MemoryApi.WipeSingleCollectionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | string |
List
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]