Unreal OpenAI API
1.0.0
Source
OpenAI
Public
Sample
Services
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
9
USTRUCT()
10
struct
FAlienRampageGameProps
11
{
12
GENERATED_BODY()
13
14
UPROPERTY()
15
FString Name;
16
17
UPROPERTY()
18
bool
Ability{
false
};
19
};
20
21
UCLASS()
22
class OPENAI_API
UQuestService
: public
UBaseService
23
{
24
GENERATED_BODY()
25
26
public
:
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
35
protected
:
36
virtual
FString MakeFunction()
const override
;
37
};
UBaseService
Definition:
BaseService.h:16
UQuestService
Definition:
QuestService.h:23
FAlienRampageGameProps
Definition:
QuestService.h:11