Skip to main content

Conversations API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
conversationsCreateFromAssetPOST /conversations/create/from_asset/{asset}/conversations/create/from_asset/{asset} [POST]
conversationsCreateSpecificConversationPOST /conversations/create/conversations/create [POST]
conversationsDeleteSpecificConversationPOST /conversations/{conversation}/delete/conversations/{conversation}/delete [POST]
conversationsIdentifiersSnapshotGET /conversations/identifiers/conversations/identifiers [GET]
conversationsSnapshotGET /conversations/conversations [GET]
conversationsStreamIdentifiersGET /conversations/stream/identifiers/conversations/stream/identifiers [WS]

conversationsCreateFromAsset

ConversationsCreateFromAssetOutput conversationsCreateFromAsset(asset)

/conversations/create/from_asset/{asset} [POST]

Creates a conversation based on an asset. It initiates a conversation and generates an initial message that includes a summary of the asset used as contextual grounding.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationsApi();
final asset = 2254f2c8-5797-40e8-ac56-41166dc0e159; // String | The id (uuid) of the asset that you are trying to access.

try {
final result = api_instance.conversationsCreateFromAsset(asset);
print(result);
} catch (e) {
print('Exception when calling ConversationsApi->conversationsCreateFromAsset: $e\n');
}

Parameters

NameTypeDescriptionNotes
assetStringThe id (uuid) of the asset that you are trying to access.

Return type

ConversationsCreateFromAssetOutput

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

conversationsCreateSpecificConversation

Conversation conversationsCreateSpecificConversation(transferables, seededConversation)

/conversations/create [POST]

Creates a specific conversation.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationsApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final seededConversation = SeededConversation(); // SeededConversation |

try {
final result = api_instance.conversationsCreateSpecificConversation(transferables, seededConversation);
print(result);
} catch (e) {
print('Exception when calling ConversationsApi->conversationsCreateSpecificConversation: $e\n');
}

Parameters

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]
seededConversationSeededConversation[optional]

Return type

Conversation

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, text/plain

conversationsDeleteSpecificConversation

conversationsDeleteSpecificConversation(conversation)

/conversations/{conversation}/delete [POST]

Deletes a specific conversation.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationsApi();
final conversation = conversation_example; // String | This is the uuid of a conversation.

try {
api_instance.conversationsDeleteSpecificConversation(conversation);
} catch (e) {
print('Exception when calling ConversationsApi->conversationsDeleteSpecificConversation: $e\n');
}

Parameters

NameTypeDescriptionNotes
conversationStringThis is the uuid of a conversation.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

conversationsIdentifiersSnapshot

FlattenedConversations conversationsIdentifiersSnapshot()

/conversations/identifiers [GET]

Retrieves all the UUIDs associated with a Conversation.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationsApi();

try {
final result = api_instance.conversationsIdentifiersSnapshot();
print(result);
} catch (e) {
print('Exception when calling ConversationsApi->conversationsIdentifiersSnapshot: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

FlattenedConversations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

conversationsSnapshot

Conversations conversationsSnapshot(transferables)

/conversations [GET]

Retrieves a snapshot of a specific conversation.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationsApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
final result = api_instance.conversationsSnapshot(transferables);
print(result);
} catch (e) {
print('Exception when calling ConversationsApi->conversationsSnapshot: $e\n');
}

Parameters

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]

Return type

Conversations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain

conversationsStreamIdentifiers

conversationsStreamIdentifiers()

/conversations/stream/identifiers [WS]

Provides a WebSocket connection that emits changes to your conversation identifiers (UUIDs).

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationsApi();

try {
api_instance.conversationsStreamIdentifiers();
} catch (e) {
print('Exception when calling ConversationsApi->conversationsStreamIdentifiers: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined