Package com.axelor.ai.chat
Record Class ChatRequest.Input
java.lang.Object
java.lang.Record
com.axelor.ai.chat.ChatRequest.Input
- Enclosing class:
ChatRequest
public static record ChatRequest.Input(String id, String messageId, String agent, String model, List<UIMessage> messages, ChatRequest.Options options)
extends Record
The body of a client's chat stream call. The rest of a request — the sub-agent path, the step
budget, whether it is a program's or a trial — is the server's to set: a path skips the agent
access check, a program's run is neither metered nor kept, and a trial's changes are undone.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagent()Returns the value of theagentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themessageIdrecord component.messages()Returns the value of themessagesrecord component.model()Returns the value of themodelrecord component.options()Returns the value of theoptionsrecord component.The interactive request this call asks for.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
public Input(String id, String messageId, String agent, String model, List<UIMessage> messages, ChatRequest.Options options) Creates an instance of aInputrecord class.- Parameters:
id- the value for theidrecord componentmessageId- the value for themessageIdrecord componentagent- the value for theagentrecord componentmodel- the value for themodelrecord componentmessages- the value for themessagesrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
toRequest
The interactive request this call asks for. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
agent
Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-