TaskStatusBuilder
Builder class for creating TaskStatus instances.
This builder provides a fluent API for creating TaskStatus objects, making it easier to construct complex task statuses with many parameters.
Example usage:
val status = TaskStatus.create {
state = TaskState.working
timestamp = System.currentTimeMillis()
message {
role = Message.Role.agent
textPart("Processing your request...")
}
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Builds a TaskStatus instance with the configured parameters.
Link copied to clipboard
Sets the message of the task status.
Link copied to clipboard
Sets the state of the task status.
Link copied to clipboard
Sets the timestamp of the task status.