5#include "CoreMinimal.h"
6#include "UObject/NoExportTypes.h"
7#include "Dom/JsonObject.h"
8#include "Provider/Types/Chat/ChatCommonTypes.h"
9#include "BaseService.generated.h"
11DECLARE_MULTICAST_DELEGATE_OneParam(FOnServiceDataRecieved,
const FMessage&);
12DECLARE_MULTICAST_DELEGATE_OneParam(FOnServiceDataError,
const FString&);
23 virtual bool Init(
const OpenAI::ServiceSecrets& Secrets);
33 virtual FString Description()
const;
38 virtual FString FunctionName()
const;
43 virtual void Call(
const TSharedPtr<FJsonObject>& Args,
const FString& ToolID);
48 virtual FString Name()
const;
53 virtual FString TooltipDescription()
const;
55 FOnServiceDataRecieved& OnServiceDataRecieved();
56 FOnServiceDataError& OnServiceDataError();
62 FOnServiceDataRecieved ServiceDataRecieved;
67 FOnServiceDataError ServiceDataError;
80 virtual FString MakeFunction()
const;
85 virtual FMessage MakeMessage(
const FString& Content)
const;
Definition: BaseService.h:16
Definition: ToolsTypes.h:78
Definition: ChatCommonTypes.h:75