Skip to content

Perplexity introduces code mode for agent api

computer code screen
Photo: Markus Spiske (CC0) via Openverse

Perplexity has launched Code Mode in its Agent API, allowing models to write JavaScript scripts that execute multiple tool calls in parallel. This approach replaces standard tool-call round-trips, reducing context window usage and lowering costs. The feature is available in high, xhigh, and ultra effort levels, supporting tools like web search and finance data. Benchmarks show that enabling Code Mode improved WANDR scores while significantly reducing the cost per task.

Read the full story at perplexity.ai.

Photo: Markus Spiske (CC0) via Openverse