# Hikigai AgentSDK (Node.js) - Complete LLM Context (Full) This full file contains extended examples, types, and recommended deployment patterns for Node.js / TypeScript users. ## Installation ```bash npm install @hikigai/agent-sdk ``` ## Full Example (Deploy + Tools + Schemas) ```ts import { AgentClient, AgentConfig, InputSchema, OutputSchema, tool, } from '@hikigai/agent-sdk' const client = new AgentClient({ apiKey: process.env.HIKIGAI_API_KEY }) const searchTool = tool(function searchDatabase(query: string) { // your DB lookup return JSON.stringify([{ code: 'E11.9', desc: 'Type 2 diabetes' }]) }) const config: AgentConfig = { name: 'icd-coder', displayName: 'ICD/CPT Coder', instruction: 'You are a medical coding assistant. Extract ICD-10 and CPT codes.', model: 'claude-3.5-sonnet', inputSchema: new InputSchema({ clinical_note: { type: 'string', required: true } }), outputSchema: new OutputSchema({ codes: { type: 'array' } }), tools: [searchTool], hipaaCompliant: true, version: '1.0.0', } const deployed = await client.deploy(config) console.log('Deployed:', deployed.slug) ``` ## Schemas & Types - Use TypeScript / Zod-backed schemas for input/output validation - `InputSchema` / `OutputSchema` builders help generate runtime validation ## Error handling - `HikigaiError`, `AuthenticationError`, `ValidationError`, `DeploymentError` ## Integrations - OpenAPI tools, function tools, MCP connectors, SONA plugin support ## Links - Node AgentSDK docs: https://docs.hikigai.com/node-agentsdk - Samples & examples: https://github.com/HKG-Inc/hikigai-platform/tree/main/AgentSDK/examples # End of file