Method GetArtifactStatus
GetArtifactStatus<TArtifactType>(Artifact<TArtifactType>, ArtifactProgressCallback, bool)
Starts polling for the status of artifact generation. Will return the status through the supplied callback. This is not cancellable as many chained web requests can be generated by polling until copleted. TODO: Don't do that.
Declaration
public static void GetArtifactStatus<TArtifactType>(Artifact<TArtifactType> artifact, GenerativeAIBackend.ArtifactProgressCallback onStatusReceived, bool pollUntilCompletedOrFailed = true)
Parameters
Type | Name | Description |
---|---|---|
Artifact<TArtifactType> | artifact | The artifact you wish to query the status of |
GenerativeAIBackend.ArtifactProgressCallback | onStatusReceived | The callback to receive the update from. This is guaranteed to run on the Unity main thread. Cannot be null |
bool | pollUntilCompletedOrFailed |
Type Parameters
Name | Description |
---|---|
TArtifactType | The concrete artifact Unity type you are polling for |