WordPress\AiClient\Providers\ApiBasedImplementation\Contracts

ApiBasedModelInterface{}interfaceWP 0.3.0└─ ModelInterface

Interface for API-based AI models that support HTTP transport configuration.

This interface extends ModelInterface to add request options support for models that communicate with external APIs via HTTP.

Хуков нет.

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

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

Методы

  1. public getRequestOptions()
  2. public setRequestOptions(RequestOptions $requestOptions)

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

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

Код ApiBasedModelInterface{} WP 7.0.4

interface ApiBasedModelInterface extends ModelInterface
{
    /**
     * Sets the request options for HTTP transport.
     *
     * @since 0.3.0
     *
     * @param RequestOptions $requestOptions The request options to use.
     * @return void
     */
    public function setRequestOptions(RequestOptions $requestOptions): void;
    /**
     * Gets the request options for HTTP transport.
     *
     * @since 0.3.0
     *
     * @return RequestOptions|null The request options, or null if not set.
     */
    public function getRequestOptions(): ?RequestOptions;
}