Skip to content

Commit 2dea04d

Browse files
author
stlc-bot
committed
docs(answers): state the 2000-character task limit in its description (#3137)
feat(feedback): add bad_brand feedback category (#3136) Stainless-Generated-From: bfa4d57fe4bb9307f0fb22a7b6efc665e61b061b
1 parent 764376f commit 2dea04d

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎src/Feedback/FeedbackSubmitParams/Category.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ enum Category: string
1919

2020
case QUALITY_DEGRADATION = 'quality_degradation';
2121

22+
case BAD_BRAND = 'bad_brand';
23+
2224
case OTHER = 'other';
2325
}

‎src/ServiceContracts/WebContract.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ interface WebContract
6868
/**
6969
* @api
7070
*
71-
* @param string $task Research task. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
71+
* @param string $task Research task, up to 2000 characters. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
7272
* @param array<string,mixed> $jsonFormat Example answer object, not JSON Schema. Up to 8 levels, 500 values, and 16000 characters; unknowns may be null.
7373
* @param Mode|value-of<Mode> $mode `fast` prioritizes speed, with extra verification for people and companies; `ultra` supports deeper research (default)
7474
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.

‎src/Services/FeedbackRawService.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(private Client $client) {}
3232
* Report an API issue or documentation mismatch, including request IDs when available.
3333
*
3434
* @param array{
35-
* category: Category|value-of<Category>,
35+
* category: value-of<Category>,
3636
* note: string,
3737
* requestID?: string,
3838
* tags?: list<string>,

‎src/Services/WebService.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(private Client $client)
8686
*
8787
* Research the web and return a sourced answer in your JSON shape. Choose `fast` for a short task or `ultra` for deeper research.
8888
*
89-
* @param string $task Research task. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
89+
* @param string $task Research task, up to 2000 characters. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
9090
* @param array<string,mixed> $jsonFormat Example answer object, not JSON Schema. Up to 8 levels, 500 values, and 16000 characters; unknowns may be null.
9191
* @param Mode|value-of<Mode> $mode `fast` prioritizes speed, with extra verification for people and companies; `ultra` supports deeper research (default)
9292
* @param list<string> $policies Access policy IDs to apply. A URL must pass every policy. Leave it out unless access policies are enabled for your organization; otherwise the request fails with `ACCESS_POLICIES_NOT_ENABLED`.

‎src/Web/WebAnswersParams.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class WebAnswersParams implements BaseModel
3737
use SdkParams;
3838

3939
/**
40-
* Research task. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
40+
* Research task, up to 2000 characters. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
4141
*/
4242
#[Required]
4343
public string $task;
@@ -143,7 +143,7 @@ public static function with(
143143
}
144144

145145
/**
146-
* Research task. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
146+
* Research task, up to 2000 characters. The agent selects company/profile lookups, web searches, or page reads. Include domains or URLs to focus the research.
147147
*/
148148
public function withTask(string $task): self
149149
{

0 commit comments

Comments
 (0)