Fix things

Signed-off-by: sirivarma <siri.varma@outlook.com>
This commit is contained in:
sirivarma 2025-08-06 15:43:19 -07:00
parent 683beae81c
commit 4c132615fe
4 changed files with 15 additions and 5 deletions

View File

@ -49,9 +49,11 @@ public class AssistantMessage implements ConversationMessage {
* Sets the name of the assistant participant.
*
* @param name the name to set
* @return this instance for method chaining
*/
public void setName(String name) {
public AssistantMessage setName(String name) {
this.name = name;
return this;
}
@Override

View File

@ -47,9 +47,11 @@ public class DeveloperMessage implements ConversationMessage {
* Sets the name of the developer participant.
*
* @param name the name to set
* @return this instance for method chaining
*/
public void setName(String name) {
public DeveloperMessage setName(String name) {
this.name = name;
return this;
}
@Override

View File

@ -48,18 +48,22 @@ public class ToolMessage implements ConversationMessage {
* Sets the tool identifier.
*
* @param toolId the tool identifier to set
* @return this instance for method chaining
*/
public void setToolId(String toolId) {
public ToolMessage setToolId(String toolId) {
this.toolId = toolId;
return this;
}
/**
* Sets the name of the tool participant.
*
* @param name the name to set
* @return this instance for method chaining
*/
public void setName(String name) {
public ToolMessage setName(String name) {
this.name = name;
return this;
}
@Override

View File

@ -47,9 +47,11 @@ public class UserMessage implements ConversationMessage {
* Sets the name of the user participant.
*
* @param name the name to set
* @return this instance for method chaining
*/
public void setName(String name) {
public UserMessage setName(String name) {
this.name = name;
return this;
}
@Override