@hashgraphonline/conversational-agent 0.2.1 → 0.2.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +3 -3
  2. package/bin/conversational-agent-cli.js +0 -1
  3. package/dist/cjs/conversational-agent.d.ts +11 -1
  4. package/dist/cjs/index.cjs +1 -1
  5. package/dist/cjs/index.cjs.map +1 -1
  6. package/dist/cjs/memory/smart-memory-manager.d.ts +7 -1
  7. package/dist/cjs/services/attachment-processor.d.ts +41 -0
  8. package/dist/cjs/services/index.d.ts +2 -0
  9. package/dist/cjs/services/parameter-service.d.ts +43 -0
  10. package/dist/cjs/tools/entity-resolver-tool.d.ts +5 -3
  11. package/dist/esm/index.js +9 -5
  12. package/dist/esm/index.js.map +1 -1
  13. package/dist/esm/index10.js +2 -2
  14. package/dist/esm/index18.js +64 -17
  15. package/dist/esm/index18.js.map +1 -1
  16. package/dist/esm/index21.js +1 -1
  17. package/dist/esm/index23.js +3 -3
  18. package/dist/esm/index24.js +20 -4
  19. package/dist/esm/index24.js.map +1 -1
  20. package/dist/esm/index29.js +248 -903
  21. package/dist/esm/index29.js.map +1 -1
  22. package/dist/esm/index30.js +98 -219
  23. package/dist/esm/index30.js.map +1 -1
  24. package/dist/esm/index31.js +833 -1085
  25. package/dist/esm/index31.js.map +1 -1
  26. package/dist/esm/index32.js +228 -115
  27. package/dist/esm/index32.js.map +1 -1
  28. package/dist/esm/index33.js +1197 -79
  29. package/dist/esm/index33.js.map +1 -1
  30. package/dist/esm/index34.js +119 -39
  31. package/dist/esm/index34.js.map +1 -1
  32. package/dist/esm/index35.js +103 -96
  33. package/dist/esm/index35.js.map +1 -1
  34. package/dist/esm/index36.js +46 -21
  35. package/dist/esm/index36.js.map +1 -1
  36. package/dist/esm/index37.js +107 -12
  37. package/dist/esm/index37.js.map +1 -1
  38. package/dist/esm/index38.js +21 -7
  39. package/dist/esm/index38.js.map +1 -1
  40. package/dist/esm/index39.js +11 -26
  41. package/dist/esm/index39.js.map +1 -1
  42. package/dist/esm/index40.js +6 -4
  43. package/dist/esm/index40.js.map +1 -1
  44. package/dist/esm/index41.js +5 -255
  45. package/dist/esm/index41.js.map +1 -1
  46. package/dist/esm/index42.js +213 -142
  47. package/dist/esm/index42.js.map +1 -1
  48. package/dist/esm/index43.js +174 -82
  49. package/dist/esm/index43.js.map +1 -1
  50. package/dist/esm/index44.js +95 -0
  51. package/dist/esm/index44.js.map +1 -0
  52. package/dist/esm/index45.js +30 -0
  53. package/dist/esm/index45.js.map +1 -0
  54. package/dist/esm/index5.js +2 -2
  55. package/dist/esm/index6.js +76 -6
  56. package/dist/esm/index6.js.map +1 -1
  57. package/dist/esm/index8.js +1 -1
  58. package/dist/types/conversational-agent.d.ts +11 -1
  59. package/dist/types/memory/smart-memory-manager.d.ts +7 -1
  60. package/dist/types/services/attachment-processor.d.ts +41 -0
  61. package/dist/types/services/index.d.ts +2 -0
  62. package/dist/types/services/parameter-service.d.ts +43 -0
  63. package/dist/types/tools/entity-resolver-tool.d.ts +5 -3
  64. package/package.json +2 -1
  65. package/src/conversational-agent.ts +97 -5
  66. package/src/langchain/form-aware-agent-executor.ts +1 -1
  67. package/src/langchain/langchain-agent.ts +36 -18
  68. package/src/memory/smart-memory-manager.ts +80 -27
  69. package/src/scripts/test-inscribe-form-generation.ts +3 -3
  70. package/src/scripts/test-inscribe-wrapper-verification.ts +3 -3
  71. package/src/services/attachment-processor.ts +163 -0
  72. package/src/services/content-store-manager.ts +32 -4
  73. package/src/services/index.ts +2 -0
  74. package/src/services/parameter-service.ts +430 -0
  75. package/src/tools/entity-resolver-tool.ts +12 -18
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Hashgraph Online Conversational Agent
2
2
 
3
- | ![](./Hashgraph-Online.png) | A conversational AI agent that implements Hashgraph Consensus Standards (HCS) for agent communication, registry management, and content inscription on the Hedera network.<br><br>This package is built and maintained by [Hashgraph Online](https://hashgraphonline.com), a consortium of leading Hashgraph organizations within the Hedera ecosystem.<br><br>[📚 Conversational Agent Documentation](https://hashgraphonline.com/docs/libraries/conversational-agent/)<br>[📖 HCS Standards Documentation](https://hcs-improvement-proposals.pages.dev/docs/standards) |
3
+ | ![](./Hashgraph-Online.png) | A conversational AI agent that implements Hashgraph Consensus Standards (HCS) for agent communication, registry management, and content inscription on the Hedera network.<br><br>This package is built and maintained by [Hashgraph Online](https://hashgraphonline.com), a consortium of leading Hashgraph organizations within the Hedera ecosystem.<br><br>[📚 Conversational Agent Documentation](https://hashgraphonline.com/docs/libraries/conversational-agent/)<br>[📖 HCS Standards Documentation](https://hashgraphonline.com/docs/standards) |
4
4
  | :-------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5
5
 
6
6
  ![Conversational Agent CLI](./conversational-agent.png)
@@ -469,7 +469,7 @@ const agent = new HederaConversationalAgent(signer, {
469
469
 
470
470
  - [Conversational Agent Documentation](https://hashgraphonline.com/docs/libraries/conversational-agent/)
471
471
  - [Standards Agent Kit Documentation](https://hashgraphonline.com/docs/libraries/standards-agent-kit/)
472
- - [HCS Standards Documentation](https://hcs-improvement-proposals.pages.dev/docs/standards)
472
+ - [HCS Standards Documentation](https://hashgraphonline.com/docs/standards)
473
473
  - [MCP Integration Guide](./docs/MCP_INTEGRATION.md)
474
474
  - [GitHub Repository](https://github.com/hashgraph-online/conversational-agent)
475
475
 
@@ -548,7 +548,7 @@ src/plugins/community/your-plugin/
548
548
  - Join our [Discord community](https://discord.gg/hashgraphonline) for discussions
549
549
  - Check existing issues and PRs before starting work
550
550
  - Ask questions in the #development channel
551
- - Review the [HCS Standards](https://hcs-improvement-proposals.pages.dev/docs/standards) for protocol details
551
+ - Review the [HCS Standards](https://hashgraphonline.com/docs/standards) for protocol details
552
552
 
553
553
  ## License
554
554
 
@@ -12,7 +12,6 @@ import { dirname, join } from 'path';
12
12
  const __filename = fileURLToPath(import.meta.url);
13
13
  const __dirname = dirname(__filename);
14
14
 
15
- // Run the actual CLI from the cli directory
16
15
  const cliPath = join(__dirname, '..', 'cli', 'dist', 'cli.js');
17
16
 
18
17
  const child = spawn('node', [cliPath, ...process.argv.slice(2)], {
@@ -28,7 +28,7 @@ export interface ConversationalAgentOptions {
28
28
  network?: NetworkType;
29
29
  openAIApiKey: string;
30
30
  openAIModelName?: string;
31
- llmProvider?: 'openai' | 'anthropic';
31
+ llmProvider?: 'openai' | 'anthropic' | 'openrouter';
32
32
  verbose?: boolean;
33
33
  operationalMode?: AgentOperationalMode;
34
34
  userAccountId?: string;
@@ -49,6 +49,16 @@ export interface ConversationalAgentOptions {
49
49
  entityMemoryEnabled?: boolean;
50
50
  /** Configuration for entity memory system */
51
51
  entityMemoryConfig?: SmartMemoryConfig;
52
+ /**
53
+ * Provider used for entity extraction/resolution tools (defaults to llmProvider or 'openai')
54
+ */
55
+ entityMemoryProvider?: 'openai' | 'anthropic' | 'openrouter';
56
+ /**
57
+ * Model name for entity extraction/resolution tools (defaults per provider)
58
+ */
59
+ entityMemoryModelName?: string;
60
+ openRouterApiKey?: string;
61
+ openRouterBaseURL?: string;
52
62
  }
53
63
  /**
54
64
  * The ConversationalAgent class is an optional wrapper around the HederaConversationalAgent class,