[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Events/ -> AfterGenerateEmbeddingEvent.php (summary)

(no description)

File Size: 108 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

AfterGenerateEmbeddingEvent:: (6 methods):
  __construct()
  getInputs()
  getModel()
  getCapability()
  getResult()
  __clone()


Class: AfterGenerateEmbeddingEvent  - X-Ref

Event dispatched after embeddings have been generated.

__construct(array $inputs, ModelInterface $model, CapabilityEnum $capability, EmbeddingResult $result)   X-Ref
Constructor.

param: list<MessagePart> $inputs The inputs that were sent to the model.
param: ModelInterface    $model The model that generated embeddings.
param: CapabilityEnum    $capability The capability that was used for generation.
param: EmbeddingResult   $result The result from the model.

getInputs()   X-Ref
Gets the inputs that were sent to the model.

return: list<MessagePart> The inputs.

getModel()   X-Ref
Gets the model that generated embeddings.

return: ModelInterface The model.

getCapability()   X-Ref
Gets the capability that was used for generation.

return: CapabilityEnum The capability.

getResult()   X-Ref
Gets the result from the model.

return: EmbeddingResult The result.

__clone()   X-Ref
Performs a deep clone of the event.




Generated : Wed Oct 14 08:20:33 2026 Cross-referenced by PHPXref