{"_id":"@a2arium/callagent-core","name":"@a2arium/callagent-core","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@a2arium/callagent-core","version":"0.2.0","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc -p tsconfig.json","test":"cd ../../ && yarn test --testPathPattern=\"packages/core\"","dev":"ts-node --project tsconfig.json src/runner/runnerCli.ts","npm:publish":"npm publish --access public","npm:publish:dry-run":"npm publish --access public --dry-run","version:patch":"npm version patch","version:minor":"npm version minor","version:major":"npm version major"},"publishConfig":{"access":"public"},"private":false,"description":"Core framework for the CallAgent AI agent system.","license":"MIT","keywords":["core","framework","callagent"],"dependencies":{"@a2arium/callagent-memory-sql":"0.2.0","@a2arium/callagent-types":"0.2.0","@a2arium/callagent-utils":"0.2.0","@prisma/client":"^6.7.0","dotenv":"^16.4.5","uuid":"^11.1.0"},"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.2","typescript":"^5.8.3"},"type":"module","_id":"@a2arium/callagent-core@0.2.0","gitHead":"36eb1e234829192a6b0a89a9d0aa5c5203b9d0a0","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-dgM8C0oyWaR/dovug0LZxougkNjca7pRxsx6edWLoCWYjRq3AHKjuLOKGIQfHl8qHFGKuJiui16xbz4nCPMdVA==","shasum":"19e629919eb95e4e4bb43878122bd87bf4604294","tarball":"https://registry.npmjs.org/@a2arium/callagent-core/-/callagent-core-0.2.0.tgz","fileCount":278,"unpackedSize":868841,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCmcH2n5fe9p2U/qRVrgh45qip95FzU93i35zBEVgYzrwIgaMCcoxqUSkXvy0hr+IKyJiCWbj35QxzoCyIYufV4sF0="}]},"_npmUser":{"name":"a2arium","email":"antonov@me.com"},"directories":{},"maintainers":[{"name":"a2arium","email":"antonov@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/callagent-core_0.2.0_1753021189084_0.2946497858946504"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-20T14:19:49.029Z","0.2.0":"2025-07-20T14:19:49.331Z","modified":"2025-07-20T14:19:49.534Z"},"maintainers":[{"name":"a2arium","email":"antonov@me.com"}],"description":"Core framework for the CallAgent AI agent system.","keywords":["core","framework","callagent"],"license":"MIT","readme":"# @a2arium/callagent-core\n\nThe core framework for the CallAgent AI agent system, providing agent orchestration, memory management, and A2A (Agent-to-Agent) communication capabilities.\n\n## Installation\n\n```bash\nnpm install @a2arium/callagent-core\n```\n\nor with yarn:\n\n```bash\nyarn add @a2arium/callagent-core\n```\n\n## Quick Start\n\n### Basic Agent Creation\n\n```typescript\nimport { createAgent, AgentManifest } from '@a2arium/callagent-core';\n\nconst manifest: AgentManifest = {\n  name: 'hello-agent',\n  version: '1.0.0',\n  description: 'A simple greeting agent',\n  inputs: {\n    name: { type: 'string', required: true }\n  },\n  outputs: {\n    message: { type: 'string' }\n  }\n};\n\nclass HelloAgent {\n  async execute(inputs: { name: string }) {\n    return {\n      message: `Hello, ${inputs.name}!`\n    };\n  }\n}\n\nconst agent = createAgent(manifest, new HelloAgent());\n\n// Use the agent\nconst result = await agent.execute({ name: 'World' });\nconsole.log(result.message); // \"Hello, World!\"\n```\n\n### Agent with Memory\n\n```typescript\nimport { createAgent, WorkingMemoryRegistry } from '@a2arium/callagent-core';\n\nclass MemoryAgent {\n  constructor(private memory: WorkingMemoryRegistry) {}\n\n  async execute(inputs: { message: string }) {\n    // Store in working memory\n    await this.memory.store('user_message', inputs.message);\n    \n    // Retrieve from memory\n    const stored = await this.memory.recall('user_message');\n    \n    return {\n      echo: `You said: ${stored?.content || 'nothing'}`\n    };\n  }\n}\n\nconst agent = createAgent(manifest, new MemoryAgent(workingMemory));\n```\n\n### A2A Communication\n\n```typescript\nimport { A2AService } from '@a2arium/callagent-core';\n\nconst a2aService = new A2AService();\n\n// Register agents\nawait a2aService.registerAgent('greeting-agent', greetingAgent);\nawait a2aService.registerAgent('translation-agent', translationAgent);\n\n// Call another agent\nconst result = await a2aService.callAgent('translation-agent', {\n  text: 'Hello',\n  targetLanguage: 'spanish'\n});\n```\n\n## Features\n\n- **Agent Framework**: Create and manage AI agents with typed inputs/outputs\n- **Memory System**: Working, episodic, semantic, and neural memory types\n- **A2A Communication**: Agent-to-Agent messaging and coordination\n- **Caching**: Built-in result caching for performance optimization\n- **Streaming**: Real-time streaming of agent outputs\n- **TypeScript Support**: Full type safety and IntelliSense\n\n## Dependencies\n\n- `@a2arium/callagent-types`: Core type definitions\n- `@a2arium/callagent-memory-sql`: SQL-based memory persistence\n- `@a2arium/callagent-utils`: Shared utilities\n\n## License\n\nMIT ","readmeFilename":"README.md","_rev":"1-bd6e56fefd3b7428d4cc2886c8a61ea5"}