-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/java-chat-mvp-intelligence-service' into featur…
…e/interface-chat-mvp-intelligence-service
- Loading branch information
Showing
11 changed files
with
971 additions
and
925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -534,7 +534,7 @@ components: | |
sender: | ||
type: string | ||
enum: | ||
- SYSTEM | ||
- LLM | ||
- USER | ||
content: | ||
type: string | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,6 @@ public class Message { | |
private Session session; | ||
|
||
public enum MessageSender { | ||
SYSTEM, USER | ||
LLM, USER | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
135 changes: 135 additions & 0 deletions
135
...server/src/main/java/de/tum/in/www1/hephaestus/intelligenceservice/model/ChatMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
/* | ||
* Hephaestus Intelligence Service API | ||
* API documentation for the Hephaestus Intelligence Service. | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
package de.tum.in.www1.hephaestus.intelligenceservice.model; | ||
|
||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import org.hibernate.validator.constraints.*; | ||
|
||
/** | ||
* ChatMessage | ||
*/ | ||
@JsonPropertyOrder({ | ||
ChatMessage.JSON_PROPERTY_CONTENT, | ||
ChatMessage.JSON_PROPERTY_SENDER | ||
}) | ||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") | ||
public class ChatMessage { | ||
public static final String JSON_PROPERTY_CONTENT = "content"; | ||
private String content; | ||
|
||
public static final String JSON_PROPERTY_SENDER = "sender"; | ||
private String sender; | ||
|
||
public ChatMessage() { | ||
} | ||
|
||
public ChatMessage content(String content) { | ||
|
||
this.content = content; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get content | ||
* @return content | ||
*/ | ||
@jakarta.annotation.Nonnull | ||
@JsonProperty(JSON_PROPERTY_CONTENT) | ||
@JsonInclude(value = JsonInclude.Include.ALWAYS) | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
|
||
@JsonProperty(JSON_PROPERTY_CONTENT) | ||
@JsonInclude(value = JsonInclude.Include.ALWAYS) | ||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
public ChatMessage sender(String sender) { | ||
|
||
this.sender = sender; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get sender | ||
* @return sender | ||
*/ | ||
@jakarta.annotation.Nonnull | ||
@JsonProperty(JSON_PROPERTY_SENDER) | ||
@JsonInclude(value = JsonInclude.Include.ALWAYS) | ||
|
||
public String getSender() { | ||
return sender; | ||
} | ||
|
||
|
||
@JsonProperty(JSON_PROPERTY_SENDER) | ||
@JsonInclude(value = JsonInclude.Include.ALWAYS) | ||
public void setSender(String sender) { | ||
this.sender = sender; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
ChatMessage chatMessage = (ChatMessage) o; | ||
return Objects.equals(this.content, chatMessage.content) && | ||
Objects.equals(this.sender, chatMessage.sender); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(content, sender); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class ChatMessage {\n"); | ||
sb.append(" content: ").append(toIndentedString(content)).append("\n"); | ||
sb.append(" sender: ").append(toIndentedString(sender)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.