Unreal OpenAI API 1.0.0
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
UNewsService Class Reference
Inheritance diagram for UNewsService:
UBaseService

Public Member Functions

virtual bool Init (const OpenAI::ServiceSecrets &Secrets) override
 
virtual FString Name () const override
 
virtual FString TooltipDescription () const override
 
virtual FString Description () const override
 
virtual FString FunctionName () const override
 
virtual void Call (const TSharedPtr< FJsonObject > &Args, const FString &ToolID) override
 
- Public Member Functions inherited from UBaseService
virtual bool Init (const OpenAI::ServiceSecrets &Secrets)
 
virtual FFunctionRequest Function () const
 
virtual FString Description () const
 
virtual FString FunctionName () const
 
virtual void Call (const TSharedPtr< FJsonObject > &Args, const FString &ToolID)
 
virtual FString Name () const
 
virtual FString TooltipDescription () const
 
FOnServiceDataRecieved & OnServiceDataRecieved ()
 
FOnServiceDataError & OnServiceDataError ()
 

Protected Member Functions

virtual FString MakeFunction () const
 
- Protected Member Functions inherited from UBaseService
virtual FString MakeFunction () const
 
virtual FMessage MakeMessage (const FString &Content) const
 

Private Member Functions

FString MakeRequestURL (const TSharedPtr< FJsonObject > &ArgsJson) const
 
void OnRequestCompleted (FHttpRequestPtr Request, FHttpResponsePtr Response, bool WasSuccessful)
 
void SendError (const FString &ErrorMessage)
 

Private Attributes

FString API_KEY {}
 

Additional Inherited Members

- Protected Attributes inherited from UBaseService
FOnServiceDataRecieved ServiceDataRecieved
 
FOnServiceDataError ServiceDataError
 
FString ToolID {}
 

Member Function Documentation

◆ Call()

void UNewsService::Call ( const TSharedPtr< FJsonObject > &  Args,
const FString &  ToolID 
)
overridevirtual

Reimplemented from UBaseService.

◆ Description()

FString UNewsService::Description ( ) const
overridevirtual

Reimplemented from UBaseService.

◆ FunctionName()

FString UNewsService::FunctionName ( ) const
overridevirtual

Reimplemented from UBaseService.

◆ Init()

bool UNewsService::Init ( const OpenAI::ServiceSecrets &  Secrets)
overridevirtual

Reimplemented from UBaseService.

◆ MakeFunction()

FString UNewsService::MakeFunction ( ) const
protectedvirtual

Reimplemented from UBaseService.

◆ Name()

virtual FString UNewsService::Name ( ) const
inlineoverridevirtual

Reimplemented from UBaseService.

◆ TooltipDescription()

virtual FString UNewsService::TooltipDescription ( ) const
inlineoverridevirtual

Reimplemented from UBaseService.


The documentation for this class was generated from the following files: