Skip to content

feat: add Dynamic Highlights (research preview) via betas param - #257

Merged
kesku merged 1 commit into
masterfrom
dynamic-highlights-beta
Sep 3, 2026
Merged

feat: add Dynamic Highlights (research preview) via betas param#257
kesku merged 1 commit into
masterfrom
dynamic-highlights-beta

Conversation

@kesku

@kesku kesku commented Aug 28, 2026

Copy link
Copy Markdown
Member

Adds dynamic: bool to HighlightsContentsOptions and an explicit betas param to search / get_contents (sync + async) that sends the Exa-Beta header, following the agent betas convention. Exports DYNAMIC_HIGHLIGHTS_BETA = "dynamic-highlights-2026-08-28". No header is sent unless betas is passed; stable calls are unchanged.

from exa_py import Exa
from exa_py.api import DYNAMIC_HIGHLIGHTS_BETA

exa = Exa()

results = exa.search(
    "agentic retrieval",
    contents={"highlights": {"dynamic": True}},
    betas=[DYNAMIC_HIGHLIGHTS_BETA],
)

contents = exa.get_contents(
    ["https://example.com"],
    highlights={"dynamic": True},
    betas=[DYNAMIC_HIGHLIGHTS_BETA],
)

@kesku
kesku force-pushed the dynamic-highlights-beta branch from 1d78f56 to d86d348 Compare August 28, 2026 18:38
@kesku kesku changed the title feat: add Dynamic Highlights (research preview) under exa.beta feat: add Dynamic Highlights (research preview) via betas param Aug 28, 2026
@kesku
kesku merged commit 4b06d0e into master Sep 3, 2026
7 checks passed
@kesku
kesku deleted the dynamic-highlights-beta branch September 3, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant