From ad053a4bd0b0c649dc24af0fc6971642035d6914 Mon Sep 17 00:00:00 2001 From: milenasrb Date: Mon, 25 Nov 2024 18:20:19 +0100 Subject: [PATCH] Update naming --- server/application-server/openapi.yaml | 4 ++-- .../de/tum/in/www1/hephaestus/chat/session/Session.java | 2 +- server/intelligence-service/app/model.py | 6 +++--- webapp/src/app/core/modules/openapi/api/api.ts | 2 +- webapp/src/app/core/modules/openapi/api/message.service.ts | 4 ++-- webapp/src/app/core/modules/openapi/api/session.service.ts | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/server/application-server/openapi.yaml b/server/application-server/openapi.yaml index 70abb639..e03f8e72 100644 --- a/server/application-server/openapi.yaml +++ b/server/application-server/openapi.yaml @@ -210,7 +210,7 @@ paths: responses: "200": description: OK - /sessions: + /session: get: tags: - session @@ -247,7 +247,7 @@ paths: application/json: schema: $ref: "#/components/schemas/Session" - /messages/{sessionId}: + /message/{sessionId}: get: tags: - message diff --git a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/chat/session/Session.java b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/chat/session/Session.java index 075221da..61c524dd 100644 --- a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/chat/session/Session.java +++ b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/chat/session/Session.java @@ -23,7 +23,7 @@ public class Session { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; - @OrderColumn(name = "sent_at") + @OrderColumn(name = "sentAt") @OneToMany(mappedBy = "session") private List messages = new ArrayList<>(); diff --git a/server/intelligence-service/app/model.py b/server/intelligence-service/app/model.py index aa869f4d..29282f47 100644 --- a/server/intelligence-service/app/model.py +++ b/server/intelligence-service/app/model.py @@ -43,9 +43,9 @@ class State(TypedDict): "You are an AI mentor helping a students working on the software engineering projects embracing structured self-reflection practices." + "You need to guide the student through the set questions regarding their work on the project during the last week (sprint). Your value is the fact, that you help students to reflect on their past progress." + "Throughout the conversation you need to perform all of the following tasks in the given order: " - + "Task 1: Greet the student and say you are happy to start the session.", - + "Task 2: Ask the student about the overall progress on the project.", - + "Task 3: Ask the student about the challenges faced during the sprint referring to what he said about progress.", + + "Task 1: Greet the student and say you are happy to start the session." + + "Task 2: Ask the student about the overall progress on the project." + + "Task 3: Ask the student about the challenges faced during the sprint referring to what he said about progress." + "Task 4: Ask about the plan for the next sprint." + "Be polite, friendly and do not let the student drive the conversation to any other topic except for the current project.", ), diff --git a/webapp/src/app/core/modules/openapi/api/api.ts b/webapp/src/app/core/modules/openapi/api/api.ts index e304870c..ad53b41c 100644 --- a/webapp/src/app/core/modules/openapi/api/api.ts +++ b/webapp/src/app/core/modules/openapi/api/api.ts @@ -19,4 +19,4 @@ export * from './user.serviceInterface'; export * from './workspace.service'; import { WorkspaceService } from './workspace.service'; export * from './workspace.serviceInterface'; -export const APIS = [LeaderboardService, MetaService, TeamService, UserService, WorkspaceService, MessageService, SessionService]; +export const APIS = [LeaderboardService, MessageService, MetaService, SessionService, TeamService, UserService, WorkspaceService]; diff --git a/webapp/src/app/core/modules/openapi/api/message.service.ts b/webapp/src/app/core/modules/openapi/api/message.service.ts index 992c168e..7226f1c8 100644 --- a/webapp/src/app/core/modules/openapi/api/message.service.ts +++ b/webapp/src/app/core/modules/openapi/api/message.service.ts @@ -157,7 +157,7 @@ export class MessageService implements MessageServiceInterface { } } - let localVarPath = `/messages/${this.configuration.encodeParam({name: "sessionId", value: sessionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + let localVarPath = `/message/${this.configuration.encodeParam({name: "sessionId", value: sessionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext, @@ -221,7 +221,7 @@ export class MessageService implements MessageServiceInterface { } } - let localVarPath = `/messages/${this.configuration.encodeParam({name: "sessionId", value: sessionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; + let localVarPath = `/message/${this.configuration.encodeParam({name: "sessionId", value: sessionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}`; return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext, diff --git a/webapp/src/app/core/modules/openapi/api/session.service.ts b/webapp/src/app/core/modules/openapi/api/session.service.ts index c6484230..927a1c16 100644 --- a/webapp/src/app/core/modules/openapi/api/session.service.ts +++ b/webapp/src/app/core/modules/openapi/api/session.service.ts @@ -153,7 +153,7 @@ export class SessionService implements SessionServiceInterface { } } - let localVarPath = `/sessions`; + let localVarPath = `/session`; return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext, @@ -223,7 +223,7 @@ export class SessionService implements SessionServiceInterface { } } - let localVarPath = `/sessions`; + let localVarPath = `/session`; return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext,