TaskSendParamsBuilder

Builder class for creating TaskSendParams instances.

This builder provides a fluent API for creating TaskSendParams objects, making it easier to configure task send parameters.

Example usage:

val params = TaskSendParams.create {
id("task-123")
sessionId("session-456")
message {
role = Message.Role.user
textPart("Hello, how can I help you?")
}
pushNotification {
url = "https://example.org/notifications"
token = "auth-token"
}
historyLength(10)
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
var id: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Builds a TaskSendParams instance with the configured parameters.

Link copied to clipboard
Link copied to clipboard

Sets the ID parameter for the task.

Link copied to clipboard

Configures the message for the task using a Java-friendly Consumer.

Configures the message for the task.

Link copied to clipboard
Link copied to clipboard

Configures the push notification config using a Java-friendly Consumer.

Configures the push notification config.

Link copied to clipboard

Sets the session ID parameter for the task.