Unreal OpenAI API 1.0.0
QuestService.h
1// OpenAI ServiceSample, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "ChatGPT/BaseService.h"
7#include "QuestService.generated.h"
8
9USTRUCT()
11{
12 GENERATED_BODY()
13
14 UPROPERTY()
15 FString Name;
16
17 UPROPERTY()
18 bool Ability{false};
19};
20
21UCLASS()
22class OPENAI_API UQuestService : public UBaseService
23{
24 GENERATED_BODY()
25
26public:
27 virtual bool Init(const OpenAI::ServiceSecrets& Secrets) override { return true; };
28 virtual FString Name() const override { return "Quest"; };
29 virtual FString TooltipDescription() const override { return "Alien Rampage Saga"; };
30
31 virtual FString Description() const override;
32 virtual FString FunctionName() const override;
33 virtual void Call(const TSharedPtr<FJsonObject>& Args, const FString& ToolID) override;
34
35protected:
36 virtual FString MakeFunction() const override;
37};
Definition: BaseService.h:16
Definition: QuestService.h:23
Definition: QuestService.h:11