Record Class DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.api.DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput
- Enclosing class:
- DashScopeAgentApi.DashScopeAgentRequest
public static record DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput(String prompt, List<DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput.DashScopeAgentRequestMessage> messages, String sessionId, String memoryId, List<String> images, com.fasterxml.jackson.databind.JsonNode bizParams)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeAgentRequestInput(String prompt, List<DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput.DashScopeAgentRequestMessage> messages, String sessionId, String memoryId, List<String> images, com.fasterxml.jackson.databind.JsonNode bizParams) Creates an instance of aDashScopeAgentRequestInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeReturns the value of thebizParamsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.images()Returns the value of theimagesrecord component.memoryId()Returns the value of thememoryIdrecord component.List<DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput.DashScopeAgentRequestMessage>messages()Returns the value of themessagesrecord component.prompt()Returns the value of thepromptrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DashScopeAgentRequestInput
public DashScopeAgentRequestInput(String prompt, List<DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput.DashScopeAgentRequestMessage> messages, String sessionId, String memoryId, List<String> images, com.fasterxml.jackson.databind.JsonNode bizParams) Creates an instance of aDashScopeAgentRequestInputrecord class.- Parameters:
prompt- the value for thepromptrecord componentmessages- the value for themessagesrecord componentsessionId- the value for thesessionIdrecord componentmemoryId- the value for thememoryIdrecord componentimages- the value for theimagesrecord componentbizParams- the value for thebizParamsrecord component
-
-
Method Details
-
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). -
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
messages
public List<DashScopeAgentApi.DashScopeAgentRequest.DashScopeAgentRequestInput.DashScopeAgentRequestMessage> messages()Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
memoryId
Returns the value of thememoryIdrecord component.- Returns:
- the value of the
memoryIdrecord component
-
images
Returns the value of theimagesrecord component.- Returns:
- the value of the
imagesrecord component
-
bizParams
public com.fasterxml.jackson.databind.JsonNode bizParams()Returns the value of thebizParamsrecord component.- Returns:
- the value of the
bizParamsrecord component
-