Connect SearchHive to Claude for tool use and web-augmented reasoning.
import Anthropic from '@anthropic-ai/sdk'
const anthropic = new Anthropic()
const response = await anthropic.messages.create({
model: 'claude-sonnet-4-20250514',
max_tokens: 4096,
tools: [{
name: 'web_search',
description: 'Search the web',
input_schema: {
type: 'object',
properties: { query: { type: 'string' } }
}
}],
messages: [{
role: 'user',
content: 'Research the latest in AI safety'
}]
})