MockAgentServer

Constructors

Link copied to clipboard
constructor(port: Int = 0, verbose: Boolean = false, notificationsUri: String = DEFAULT_NOTIFICATIONS_URI)

Constructor for initializing a MockAgentServer instance.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Configures a behavior for handling Agent Card mock server requests. This method simulates interactions with an endpoint that retrieves agent card data.

Link copied to clipboard
open fun baseUrl(): String
Link copied to clipboard
Link copied to clipboard

Configures the behavior of the mocking server to handle Get a Task requests.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun port(): Int
Link copied to clipboard
Link copied to clipboard

Configures the behavior of the mocking server to handle message/send requests.

Link copied to clipboard
suspend fun sendPushNotification(config: PushNotificationConfig = PushNotificationConfig(url = notificationUrl()), event: TaskUpdateEvent)
Link copied to clipboard

Configures the behavior of the mocking server to handle message/stream requests.

Link copied to clipboard
open override fun shutdown(gracePeriodMillis: Long, timeoutMillis: Long)
Link copied to clipboard

Configures the behavior of the mocking server to handle Resubscribe to a Task requests.

Link copied to clipboard
Link copied to clipboard