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
expectedBaseUrlstring-
The connected Engine URL the caller confirmed.
forceShutdownbool-
If true, immediately terminates the engine. If false, allows graceful cleanup before shutdown.
ctCancellationToken-
Cancellation token for the active run.
Returns
- Task<AvatarShutdownResponse>
-
Response indicating success, description, and whether shutdown was initiated.