Skip to content

Commit 3779de1

Browse files
1 parent f0ce882 commit 3779de1

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

src/Document/GoogleCloudDocumentaiV1DocumentSchema.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ class GoogleCloudDocumentaiV1DocumentSchema extends \Google\Collection
3232
* @var string
3333
*/
3434
public $displayName;
35+
/**
36+
* Optional. Document level prompt provided by the user. This custom text is
37+
* injected into the AI model's prompt to provide extra, document-wide
38+
* guidance for processing.
39+
*
40+
* @var string
41+
*/
42+
public $documentPrompt;
3543
protected $entityTypesType = GoogleCloudDocumentaiV1DocumentSchemaEntityType::class;
3644
protected $entityTypesDataType = 'array';
3745
protected $metadataType = GoogleCloudDocumentaiV1DocumentSchemaMetadata::class;
@@ -69,6 +77,24 @@ public function getDisplayName()
6977
{
7078
return $this->displayName;
7179
}
80+
/**
81+
* Optional. Document level prompt provided by the user. This custom text is
82+
* injected into the AI model's prompt to provide extra, document-wide
83+
* guidance for processing.
84+
*
85+
* @param string $documentPrompt
86+
*/
87+
public function setDocumentPrompt($documentPrompt)
88+
{
89+
$this->documentPrompt = $documentPrompt;
90+
}
91+
/**
92+
* @return string
93+
*/
94+
public function getDocumentPrompt()
95+
{
96+
return $this->documentPrompt;
97+
}
7298
/**
7399
* Entity types of the schema.
74100
*

src/Document/GoogleCloudDocumentaiV1beta3DocumentSchema.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ class GoogleCloudDocumentaiV1beta3DocumentSchema extends \Google\Collection
3232
* @var string
3333
*/
3434
public $displayName;
35+
/**
36+
* Optional. Document level prompt provided by the user. This custom text is
37+
* injected into the AI model's prompt to provide extra, document-wide
38+
* guidance for processing.
39+
*
40+
* @var string
41+
*/
42+
public $documentPrompt;
3543
protected $entityTypesType = GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType::class;
3644
protected $entityTypesDataType = 'array';
3745
protected $metadataType = GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata::class;
@@ -69,6 +77,24 @@ public function getDisplayName()
6977
{
7078
return $this->displayName;
7179
}
80+
/**
81+
* Optional. Document level prompt provided by the user. This custom text is
82+
* injected into the AI model's prompt to provide extra, document-wide
83+
* guidance for processing.
84+
*
85+
* @param string $documentPrompt
86+
*/
87+
public function setDocumentPrompt($documentPrompt)
88+
{
89+
$this->documentPrompt = $documentPrompt;
90+
}
91+
/**
92+
* @return string
93+
*/
94+
public function getDocumentPrompt()
95+
{
96+
return $this->documentPrompt;
97+
}
7298
/**
7399
* Entity types of the schema.
74100
*

0 commit comments

Comments
 (0)