/**
 * Quick Start — Verify an agent's trust in 3 lines
 *
 * Run: npx ts-node examples/quick-start.ts
 */

import { createVaultfireReadTools } from '@vaultfire/langchain';

// 1. Create tools for Base (read-only, no signer needed)
const tools = createVaultfireReadTools({ chain: 'base' });

// 2. List what your agent can do
console.log('Available Vaultfire tools:');
for (const tool of tools) {
  console.log(`  - ${tool.name}: ${tool.description.slice(0, 80)}...`);
}

// 3. Call a tool directly (or pass `tools` to your LangChain agent)
async function main() {
  const verifyTool = tools.find((t) => t.name === 'vaultfire_verify_agent')!;
  const result = await verifyTool.func({
    address: '0xA054f831B562e729F8D268291EBde1B2EDcFb84F',
  });
  console.log('\nTrust Verification Result:');
  console.log(JSON.parse(result));
}

main().catch(console.error);
