diff --git a/structure/main.ts b/structure/main.ts index 40b7a2a3..7b05b299 100644 --- a/structure/main.ts +++ b/structure/main.ts @@ -1,4 +1,29 @@ +/** + * Params of aiplacement_courseassist_summarise_text WS. + * + * WS Description: Summarise text for the Course Assistance Placement + */ +type AiplacementCourseassistSummariseTextWSParams = { + contextid: number; // The context ID. + prompttext: string; // The prompt text for the AI service. +}; + +/** + * Data returned by aiplacement_courseassist_summarise_text WS. + * + * WS Description: Summarise text for the Course Assistance Placement + */ +export type AiplacementCourseassistSummariseTextWSResponse = { + success: boolean; // Was the request successful. + timecreated: number; // The time the request was created. + prompttext: string; // The prompt text for the AI service. + generatedcontent?: string; // The text generated by AI. + finishreason?: string; // The reason generation was stopped. + errorcode?: number; // Error code if any. + error?: string; // Error message if any. +}; + /** * Params of aiplacement_editor_generate_image WS. *