Unreal OpenAI API 1.0.0
ToolsTypes.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Provider/OpenAIOptional.h"
7#include "ToolsTypes.generated.h"
8
9USTRUCT(BlueprintType)
11{
12 GENERATED_BODY()
13
14
17 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
18 FString Name;
19
26 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
27 FString Arguments;
28};
29
30USTRUCT(BlueprintType)
32{
33 GENERATED_BODY()
34
35
38 UPROPERTY(BlueprintReadWrite, Category = "OpenAI")
39 FString ID;
40
44 UPROPERTY(BlueprintReadWrite, Category = "OpenAI")
45 FString Type{"function"};
46
50 UPROPERTY(BlueprintReadWrite, Category = "OpenAI")
52};
53
54USTRUCT(BlueprintType)
56{
57 GENERATED_BODY()
58
59 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
60 int32 Index{};
61};
62
63USTRUCT(BlueprintType)
65{
66 GENERATED_BODY()
67
68
72 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
73 FString Name;
74};
75
76USTRUCT(BlueprintType)
78{
79 GENERATED_BODY()
80
81
84 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
85 FString Description;
86
93 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
94 FString Parameters; // @todo: object
95
102 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
104};
105
106USTRUCT(BlueprintType)
107struct FTools
108{
109 GENERATED_BODY()
110
111
114 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
115 FString Type{"function"};
116
117 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
118 FFunctionRequest Function;
119};
120
121USTRUCT(BlueprintType)
123{
124 GENERATED_BODY()
125
126
129 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
130 FString Type{"function"};
131
132 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
133 FFunctionRequestBase Function;
134};
Definition: OpenAI.Build.cs:6
Definition: ToolsTypes.h:11
Definition: ToolsTypes.h:65
Definition: ToolsTypes.h:78
Definition: OpenAIOptional.h:58
Definition: ToolsTypes.h:56
Definition: ToolsTypes.h:32
Definition: ToolsTypes.h:123
Definition: ToolsTypes.h:108