Skip to content

Commit

Permalink
Update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
milesha committed Nov 25, 2024
1 parent 91f7040 commit ad053a4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions server/application-server/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ paths:
responses:
"200":
description: OK
/sessions:
/session:
get:
tags:
- session
Expand Down Expand Up @@ -247,7 +247,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Session"
/messages/{sessionId}:
/message/{sessionId}:
get:
tags:
- message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Message> messages = new ArrayList<>();

Expand Down
6 changes: 3 additions & 3 deletions server/intelligence-service/app/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
),
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/app/core/modules/openapi/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
4 changes: 2 additions & 2 deletions webapp/src/app/core/modules/openapi/api/message.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Message>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
Expand Down Expand Up @@ -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<Array<Message>>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/app/core/modules/openapi/api/session.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class SessionService implements SessionServiceInterface {
}
}

let localVarPath = `/sessions`;
let localVarPath = `/session`;
return this.httpClient.request<Session>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
Expand Down Expand Up @@ -223,7 +223,7 @@ export class SessionService implements SessionServiceInterface {
}
}

let localVarPath = `/sessions`;
let localVarPath = `/session`;
return this.httpClient.request<Array<Session>>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
Expand Down

0 comments on commit ad053a4

Please sign in to comment.