Record Class TaskOutputTool.Request
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.graph.agent.tools.task.TaskOutputTool.Request
- Enclosing class:
- TaskOutputTool
@JsonClassDescription("Request to get output from a background task")
public static record TaskOutputTool.Request(String taskId, Boolean block, Long timeout)
extends Record
Request structure for the TaskOutput tool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.taskId()Returns the value of thetaskIdrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Request
public Request(@JsonPropertyDescription("The task ID to get output from") String taskId, @JsonPropertyDescription("Whether to wait for completion (default: true)") Boolean block, @JsonPropertyDescription("Max wait time in milliseconds (default: 30000)") Long timeout) Creates an instance of aRequestrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentblock- the value for theblockrecord componenttimeout- the value for thetimeoutrecord 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). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-