1010use Stagehand \Core \Contracts \BaseModel ;
1111
1212/**
13- * @phpstan-type UnionMember1Shape = array{
13+ * @phpstan-type ModelConfigObjectShape = array{
1414 * modelName: string, apiKey?: string|null, baseURL?: string|null
1515 * }
1616 */
17- final class UnionMember1 implements BaseModel
17+ final class ModelConfigObject implements BaseModel
1818{
19- /** @use SdkModel<UnionMember1Shape > */
19+ /** @use SdkModel<ModelConfigObjectShape > */
2020 use SdkModel;
2121
22+ /**
23+ * Model name string without prefix (e.g., 'gpt-5-nano', 'claude-4.5-opus').
24+ */
2225 #[Required]
2326 public string $ modelName ;
2427
28+ /**
29+ * API key for the model provider.
30+ */
2531 #[Optional]
2632 public ?string $ apiKey ;
2733
34+ /**
35+ * Base URL for the model provider.
36+ */
2837 #[Optional]
2938 public ?string $ baseURL ;
3039
3140 /**
32- * `new UnionMember1 ()` is missing required properties by the API.
41+ * `new ModelConfigObject ()` is missing required properties by the API.
3342 *
3443 * To enforce required parameters use
3544 * ```
36- * UnionMember1 ::with(modelName: ...)
45+ * ModelConfigObject ::with(modelName: ...)
3746 * ```
3847 *
3948 * Otherwise ensure the following setters are called
4049 *
4150 * ```
42- * (new UnionMember1 )->withModelName(...)
51+ * (new ModelConfigObject )->withModelName(...)
4352 * ```
4453 */
4554 public function __construct ()
@@ -67,6 +76,9 @@ public static function with(
6776 return $ self ;
6877 }
6978
79+ /**
80+ * Model name string without prefix (e.g., 'gpt-5-nano', 'claude-4.5-opus').
81+ */
7082 public function withModelName (string $ modelName ): self
7183 {
7284 $ self = clone $ this ;
@@ -75,6 +87,9 @@ public function withModelName(string $modelName): self
7587 return $ self ;
7688 }
7789
90+ /**
91+ * API key for the model provider.
92+ */
7893 public function withAPIKey (string $ apiKey ): self
7994 {
8095 $ self = clone $ this ;
@@ -83,6 +98,9 @@ public function withAPIKey(string $apiKey): self
8398 return $ self ;
8499 }
85100
101+ /**
102+ * Base URL for the model provider.
103+ */
86104 public function withBaseURL (string $ baseURL ): self
87105 {
88106 $ self = clone $ this ;
0 commit comments