99use OpenAI \Testing \Responses \Concerns \Fakeable ;
1010
1111/**
12- * @phpstan-type OutputFunctionToolCallType array{arguments: string, call_id: string, name: string, type: 'function_call', id: string, status: 'in_progress'|'completed'|'incomplete'}
12+ * @phpstan-type OutputFunctionToolCallType array{arguments: string, call_id: string, name: string, namespace?: ?string, type: 'function_call', id: string, status: 'in_progress'|'completed'|'incomplete'}
1313 *
1414 * @implements ResponseContract<OutputFunctionToolCallType>
1515 */
@@ -33,6 +33,7 @@ private function __construct(
3333 public readonly string $ type ,
3434 public readonly string $ id ,
3535 public readonly string $ status ,
36+ public readonly ?string $ namespace ,
3637 ) {}
3738
3839 /**
@@ -47,6 +48,7 @@ public static function from(array $attributes): self
4748 type: $ attributes ['type ' ],
4849 id: $ attributes ['id ' ],
4950 status: $ attributes ['status ' ],
51+ namespace: $ attributes ['namespace ' ] ?? null ,
5052 );
5153 }
5254
@@ -59,6 +61,7 @@ public function toArray(): array
5961 'arguments ' => $ this ->arguments ,
6062 'call_id ' => $ this ->callId ,
6163 'name ' => $ this ->name ,
64+ 'namespace ' => $ this ->namespace ,
6265 'type ' => $ this ->type ,
6366 'id ' => $ this ->id ,
6467 'status ' => $ this ->status ,
0 commit comments