## Research `client.agent.research(AgentResearchParamsbody, RequestOptionsoptions?): ResearchEvent | Stream` **post** `/research` Execute AI-powered research queries that search the web, analyze sources, and synthesize comprehensive answers. This endpoint **always streams** responses using Server-Sent Events (SSE). **Streaming Response:** - All responses are streamed using Server-Sent Events (`text/event-stream`) - Real-time progress updates as research progresses through phases **Research Modes:** - `fast` - Quick answers with minimal web searches - `balanced` - Standard research with multiple iterations (default) **Use Cases:** - Answering complex questions with cited sources - Synthesizing information from multiple web sources - Research reports on specific topics - Fact-checking and verification tasks ### Parameters - `body: AgentResearchParams` - `query: string` The research query or question to answer - `fetch_timeout?: number` Timeout in seconds for fetching web pages - `mode?: "fast" | "balanced"` Research mode: fast (quick answers), balanced (standard research, default) - `"fast"` - `"balanced"` - `nocache?: boolean` Skip cache and force fresh research ### Returns - `ResearchEvent` - `data?: unknown` Event payload data - `event?: "phase" | "progress" | "complete" | "error"` The event type: phase, progress, complete, or error - `"phase"` - `"progress"` - `"complete"` - `"error"` ### Example ```typescript import Tabstack from '@tabstack/sdk'; const client = new Tabstack({ apiKey: process.env['TABSTACK_API_KEY'], // This is the default and can be omitted }); const researchEvent = await client.agent.research({ query: 'What are the latest developments in quantum computing?', }); console.log(researchEvent.data); ```