const agent = new Agent({ name: 'Research Agent', instructions: 'Search the web to answer questions with citations.', model: anthropic('claude-sonnet-4-6'), modelConfig: { serverTools: [ { type: 'web_search_20250305', name: 'web_search' } ] }});const result = await agent.process({ message: 'What are the latest AI breakthroughs this week?'});
xAI Grok models support native web search, X/Twitter search, and code execution. These work via the Responses API.
xAI native tools (web_search, x_search, code_interpreter) require the Responses API format, which is not yet proxied through Runflow. Coming soon. For now, use Anthropic server tools or custom function tools for web search.