Table of Contents

Class GenAiApiWS

Namespace
PHCWS
Assembly
PHCWS.dll
public class GenAiApiWS : PHCGenericWS, IComponent, IDisposable, IServiceProvider
Inheritance
GenAiApiWS

Methods

GetGenAiAnswer(object, GenAiTypeEnum)

This function will connect with api to obtain an answer to the question

[WebMethod]
public PHCResult GetGenAiAnswer(object genAIQuestionContent, GenAiApi.GenAiTypeEnum genAiType)

Parameters

Nome Tipo Descrição
genAIQuestionContent object
genAiType GenAiApi.GenAiTypeEnum

Returns

PHCResult

Returns a phcresult with the answer in stringresult

GetPromptToCopy(object, GenAiTypeEnum)

[WebMethod]
public PHCResult GetPromptToCopy(object genAIQuestionContent, GenAiApi.GenAiTypeEnum genAiType)

Parameters

Nome Tipo Descrição
genAIQuestionContent object
genAiType GenAiApi.GenAiTypeEnum

Returns

PHCResult