WordPress\AiClient\Providers\Contracts

ProviderOperationsHandlerInterface{}interfaceWP 0.1.0

Interface for handling provider-level operations.

Provides methods to retrieve and manage long-running operations across all models within a provider. Operations are tracked at the provider level rather than per-model.

Хуков нет.

Использование

$ProviderOperationsHandlerInterface = new ProviderOperationsHandlerInterface();
// use class methods

Методы

  1. public getOperation(string $operationId)

Список изменений

С версии 0.1.0 Введена.

Код ProviderOperationsHandlerInterface{} WP 7.0.4

interface ProviderOperationsHandlerInterface
{
    /**
     * Gets an operation by ID.
     *
     * @since 0.1.0
     *
     * @param string $operationId Operation identifier.
     * @return OperationInterface The operation.
     * @throws InvalidArgumentException If operation not found.
     */
    public function getOperation(string $operationId): OperationInterface;
}