| Server IP : 45.77.68.45 / Your IP : 127.0.0.100 Web Server : PHPix/0.2.2 (Caddy compatible) System : wasi wasmer.sh 0.0.0 0.0.0 wasm32 User : ( 1) PHP Version : 8.3.21 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /app/wp-includes/php-ai-client/src/Providers/Contracts/ |
Upload File : |
<?php
declare (strict_types=1);
namespace WordPress\AiClient\Providers\Contracts;
use WordPress\AiClient\Common\Exception\InvalidArgumentException;
use WordPress\AiClient\Operations\Contracts\OperationInterface;
/**
* 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.
*
* @since 0.1.0
*/
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;
}