AI agent instructions
AI agent instructions
observe() options are deprecated and will be removed on December 1, 2026:
perception_type="deep"instructions
Deprecation, Sunset and Link response headers, and the Python and TypeScript SDKs emit a deprecation warning. After December 1, 2026 the API rejects requests that use either option.
Deep perception → fast perception
Removeperception_type="deep" from observe() calls and from the session options, or set it to "fast", the default. In Python, session.observe(perception_type="deep") becomes session.observe(); in TypeScript, session.observe({ perception_type: 'deep' }) becomes session.observe().
Fast perception lists the page’s actions with their IDs and selectors. It does not add the LLM-written page description, action descriptions and categories that deep perception added.
Observe instructions
Usesession.act(instruction) instead. It observes the page, picks the action that carries out the instruction and runs it, so session.observe(instructions="...") followed by session.execute(...) becomes session.act("..."). act() runs on local sessions of the Python SDK (notte.Session, with pip install "notte[llm]") and on cloud sessions (client.Session); session.choose() and session.check() answer typed questions about the page.
The TypeScript SDK does not run act() yet. There, call observe() without instructions and pick the next action from the actions it returns, for example by passing them to your own LLM: in Python, choose among observation.space.actions and pass the chosen action to session.execute(action); in TypeScript, execute it by its type and ID, for example session.execute({ type: 'click', id: 'B1' }), or build it with the typed action helpers (actions.fill({ ... })).
Response headers
Responses to observe requests that use either option carry:
If you call the API directly, you can log these headers to find the remaining calls in your code.