| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
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.
| File Size: | 56 lines (2 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| usingModelConfig(ModelConfig $config) X-Ref |
| Sets the model configuration. Merges the provided configuration with the builder's configuration, with builder configuration taking precedence. return: self param: ModelConfig $config The model configuration to merge. |
| mergeModelConfig(ModelConfig $config) X-Ref |
| Merges the given configuration into the builder's configuration. The builder's own configuration takes precedence for any overlapping settings, so that explicitly configured values are never overwritten by defaults from another source. return: void param: ModelConfig $config The model configuration to merge. |
| Generated : Wed Oct 14 08:20:33 2026 | Cross-referenced by PHPXref |