@@ -43,6 +43,12 @@ class InferenceParameters
4343 */
4444 public array $ webhooksIds ;
4545
46+ /**
47+ * @var string|null Additional text context used by the model during inference.
48+ * Not recommended, for specific use only.
49+ */
50+ public ?string $ textContext ;
51+
4652 /**
4753 * @var PollingOptions Polling options.
4854 */
@@ -56,6 +62,7 @@ class InferenceParameters
5662 * @param boolean|null $confidence Whether to calculate confidence scores for all fields.
5763 * @param string|null $alias Optional file alias.
5864 * @param array<string>|null $webhooksIds List of webhook IDs.
65+ * @param string|null $textContext Additional text context used by the model during inference.
5966 * @param PollingOptions|null $pollingOptions Polling options.
6067 */
6168 public function __construct (
@@ -66,6 +73,7 @@ public function __construct(
6673 ?bool $ confidence = null ,
6774 ?string $ alias = null ,
6875 ?array $ webhooksIds = null ,
76+ ?string $ textContext = null ,
6977 ?PollingOptions $ pollingOptions = null ,
7078 ) {
7179 $ this ->modelId = $ modelId ;
@@ -81,6 +89,9 @@ public function __construct(
8189 if (isset ($ alias )) {
8290 $ this ->alias = $ alias ;
8391 }
92+ if (isset ($ textContext )) {
93+ $ this ->textContext = $ textContext ;
94+ }
8495 if (isset ($ webhooksIds )) {
8596 $ this ->webhooksIds = $ webhooksIds ;
8697 } else {
0 commit comments