Table of Contents

Method ShutdownAsync

Namespace
Oscova.Agents.Avatar
Assembly
Oscova.Agents.dll

ShutdownAsync(string, bool, CancellationToken)

Requests a shutdown of the avatar engine. The response is sent before the engine terminates.

Task<AvatarShutdownResponse> ShutdownAsync(string expectedBaseUrl, bool forceShutdown = false, CancellationToken ct = default)

Parameters

expectedBaseUrl string

The connected Engine URL the caller confirmed.

forceShutdown bool

If true, immediately terminates the engine. If false, allows graceful cleanup before shutdown.

ct CancellationToken

Cancellation token for the active run.

Returns

Task<AvatarShutdownResponse>

Response indicating success, description, and whether shutdown was initiated.