Class FTryllMutableKb¶
#include <TryllMutableKb.h>
Inherits the following classes: TSharedFromThis< FTryllMutableKb >
Public Functions¶
| Type | Name |
|---|---|
| void | Clear (TFunction< void(uint32 ClearedCount, const FTryllError &)> OnComplete) |
| void | Delete (const TArray< FString > & Ids, TFunction< void(uint32 DeletedCount, const FTryllError &)> OnComplete) |
| void | DrainPendingCallbacks (const FTryllError & TerminalError) |
| void | Export (TFunction< void(const FTryllMutableKbSnapshot &, const FTryllError &)> OnComplete) |
| FTryllMutableKb (TSharedPtr< FTryllConnection > InConnection, FString InName, FString InSchema) |
|
| void | Get (const FString & Id, TFunction< void(bool bFound, const FTryllMutableKbRecord &, const FTryllError &)> OnComplete) |
| const FString & | GetName () const |
| const FString & | GetSchema () const |
| void | Import (const FTryllMutableKbSnapshot & Snapshot, ETryllMutableKbCompatibility Compatibility, TFunction< void(const FTryllMutableKbImportResult &, const FTryllError &)> OnComplete) |
| bool | IsValid () const |
| void | List (uint32 Offset, uint32 Limit, TFunction< void(const FTryllMutableKbListPage &, const FTryllError &)> OnComplete) |
| void | Query (const FString & QueryText, uint32 TopK, TFunction< void(const TArray< FTryllMutableKbHit > &, const FTryllError &)> OnComplete) |
| void | Query (const FString & QueryText, uint32 TopK, ETryllRetrievalMode Mode, TFunction< void(const TArray< FTryllMutableKbHit > &, const FTryllError &)> OnComplete) |
| void | Stats (TFunction< void(const FTryllMutableKbStats &, const FTryllError &)> OnComplete) |
| bool | TryHandleEvent (const struct FTryllConnEvent & Event) |
| void | Write (const TArray< FTryllMutableKbUpsert > & Records, TFunction< void(const TArray< FTryllMutableKbWriteResult > &, const FTryllError &)> OnComplete) |
Detailed Description¶
Session-bound handle for one named mutable knowledge base. Created by UTryllSubsystem / UTryllEditorSubsystem after EnsureMutableKb. Operations fail with a terminal error after the owning session is torn down.
Public Functions Documentation¶
function Clear¶
void FTryllMutableKb::Clear (
TFunction< void(uint32 ClearedCount, const FTryllError &)> OnComplete
)
function Delete¶
void FTryllMutableKb::Delete (
const TArray< FString > & Ids,
TFunction< void(uint32 DeletedCount, const FTryllError &)> OnComplete
)
function DrainPendingCallbacks¶
function Export¶
void FTryllMutableKb::Export (
TFunction< void(const FTryllMutableKbSnapshot &, const FTryllError &)> OnComplete
)
function FTryllMutableKb¶
FTryllMutableKb::FTryllMutableKb (
TSharedPtr< FTryllConnection > InConnection,
FString InName,
FString InSchema
)
function Get¶
void FTryllMutableKb::Get (
const FString & Id,
TFunction< void(bool bFound, const FTryllMutableKbRecord &, const FTryllError &)> OnComplete
)
function GetName¶
function GetSchema¶
function Import¶
void FTryllMutableKb::Import (
const FTryllMutableKbSnapshot & Snapshot,
ETryllMutableKbCompatibility Compatibility,
TFunction< void(const FTryllMutableKbImportResult &, const FTryllError &)> OnComplete
)
function IsValid¶
function List¶
void FTryllMutableKb::List (
uint32 Offset,
uint32 Limit,
TFunction< void(const FTryllMutableKbListPage &, const FTryllError &)> OnComplete
)
function Query [1/2]¶
void FTryllMutableKb::Query (
const FString & QueryText,
uint32 TopK,
TFunction< void(const TArray< FTryllMutableKbHit > &, const FTryllError &)> OnComplete
)
function Query [2/2]¶
void FTryllMutableKb::Query (
const FString & QueryText,
uint32 TopK,
ETryllRetrievalMode Mode,
TFunction< void(const TArray< FTryllMutableKbHit > &, const FTryllError &)> OnComplete
)
function Stats¶
void FTryllMutableKb::Stats (
TFunction< void(const FTryllMutableKbStats &, const FTryllError &)> OnComplete
)
function TryHandleEvent¶
function Write¶
void FTryllMutableKb::Write (
const TArray< FTryllMutableKbUpsert > & Records,
TFunction< void(const TArray< FTryllMutableKbWriteResult > &, const FTryllError &)> OnComplete
)
The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/TryllMutableKb.h