Skip to content

Commit d4d0af6

Browse files
author
stlc-bot
committed
feat(answers): route people and company research with faster answers (#1336)
Stainless-Generated-From: a404076
1 parent 928e7f5 commit d4d0af6

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

‎src/context/dev/resources/web.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ def answers(
8282
for a short task or `ultra` for deeper research.
8383
8484
Args:
85-
task: Research task. Name a domain to have it read before searching.
85+
task: Research task. The agent selects company/profile lookups, web searches, or page
86+
reads. Include domains or URLs to focus the research.
8687
8788
json_format: Example answer object, not JSON Schema. Up to 8 levels, 500 values, and 16000
8889
characters; unknowns may be null.
8990
90-
mode: `fast` for short tasks; `ultra` for deeper research (default).
91+
mode: `fast` prioritizes speed, with extra verification for people and companies;
92+
`ultra` supports deeper research (default).
9193
9294
tags: Labels for filtering usage in the dashboard.
9395
@@ -1480,12 +1482,14 @@ async def answers(
14801482
for a short task or `ultra` for deeper research.
14811483
14821484
Args:
1483-
task: Research task. Name a domain to have it read before searching.
1485+
task: Research task. The agent selects company/profile lookups, web searches, or page
1486+
reads. Include domains or URLs to focus the research.
14841487
14851488
json_format: Example answer object, not JSON Schema. Up to 8 levels, 500 values, and 16000
14861489
characters; unknowns may be null.
14871490
1488-
mode: `fast` for short tasks; `ultra` for deeper research (default).
1491+
mode: `fast` prioritizes speed, with extra verification for people and companies;
1492+
`ultra` supports deeper research (default).
14891493
14901494
tags: Labels for filtering usage in the dashboard.
14911495

‎src/context/dev/types/web_answers_params.py‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313

1414
class WebAnswersParams(TypedDict, total=False):
1515
task: Required[str]
16-
"""Research task. Name a domain to have it read before searching."""
16+
"""Research task.
17+
18+
The agent selects company/profile lookups, web searches, or page reads. Include
19+
domains or URLs to focus the research.
20+
"""
1721

1822
json_format: Dict[str, object]
1923
"""Example answer object, not JSON Schema.
@@ -22,7 +26,10 @@ class WebAnswersParams(TypedDict, total=False):
2226
"""
2327

2428
mode: Literal["fast", "ultra"]
25-
"""`fast` for short tasks; `ultra` for deeper research (default)."""
29+
"""
30+
`fast` prioritizes speed, with extra verification for people and companies;
31+
`ultra` supports deeper research (default).
32+
"""
2633

2734
tags: SequenceNotStr[str]
2835
"""Labels for filtering usage in the dashboard."""

‎src/context/dev/types/web_answers_response.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ class WebAnswersResponse(BaseModel):
2222
"""The answer, in the shape requested by json_format."""
2323

2424
sources: List[str]
25-
"""URLs that supplied search results or readable page content, in first-seen order.
26-
27-
Unreadable pages are excluded.
25+
"""
26+
Public evidence URLs from searches, pages, or company/profile records, in
27+
first-seen order. A listed URL may identify a record without its page being
28+
read.
2829
"""
2930

3031
key_metadata: Optional[KeyMetadata] = None

0 commit comments

Comments
 (0)