import { defineAgent, schema } from '@fabric-harness/sdk'; export default defineAgent({ name: 'node-analyst', description: 'Node.js agent that answers questions using built-in tools.', input: schema.object({ question: schema.string() }), output: schema.string(), triggers: { webhook: true, manual: true }, model: __FH_INIT_MODEL__, async run({ init, input }) { const fabric = await init({ sandbox: 'local' }); const session = await fabric.session(); return await session.prompt(input.question); }, });