[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Builders/Traits/

FolderUp one level  
FileModelConfigurationTrait.php [source] [56 lines]    Provides shared model configuration methods for builders. Builders that generate results from a model (e.g. {@see \WordPress\AiClient\Builders\PromptBuilder} and {@see \WordPress\AiClient\Builders\EmbeddingBuilder}) use this trait to accumulate model configuration, regardless of how they determine which model to use.
FileModelResolutionTrait.php    [source] [92 lines]    Provides shared model selection methods for builders. Builders that resolve a model from the available providers (e.g. {@see \WordPress\AiClient\Builders\PromptBuilder}) use this trait to expose a consistent fluent API for choosing a model, provider, preferences, and request options. Model selection state and logic live on the {@see ModelResolver} owned by the builder. Model configuration is handled by the composed {@see ModelConfigurationTrait}.


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