Record Class TurAIAgentChatAPI.AgentChatRequest
java.lang.Object
java.lang.Record
com.viglet.turing.api.agent.TurAIAgentChatAPI.AgentChatRequest
- Enclosing class:
TurAIAgentChatAPI
public static record TurAIAgentChatAPI.AgentChatRequest(String llmInstanceId, List<TurAIAgentChatAPI.ChatMessageItem> messages)
extends Record
- Since:
- 2026.1.14
- Author:
- Alexandre Oliveira
-
Constructor Summary
ConstructorsConstructorDescriptionAgentChatRequest(String llmInstanceId, List<TurAIAgentChatAPI.ChatMessageItem> messages) Creates an instance of aAgentChatRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thellmInstanceIdrecord component.messages()Returns the value of themessagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentChatRequest
Creates an instance of aAgentChatRequestrecord class.- Parameters:
llmInstanceId- the value for thellmInstanceIdrecord componentmessages- the value for themessagesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
llmInstanceId
Returns the value of thellmInstanceIdrecord component.- Returns:
- the value of the
llmInstanceIdrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-