@hashgraphonline/conversational-agent 0.2.0 → 0.2.101
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.
- package/README.md +3 -3
- package/dist/cjs/conversational-agent.d.ts +11 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/services/attachment-processor.d.ts +41 -0
- package/dist/cjs/services/index.d.ts +2 -0
- package/dist/cjs/services/parameter-service.d.ts +43 -0
- package/dist/cjs/tools/entity-resolver-tool.d.ts +5 -3
- package/dist/esm/index.js +9 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index10.js +2 -2
- package/dist/esm/index21.js +1 -1
- package/dist/esm/index23.js +3 -3
- package/dist/esm/index24.js +20 -4
- package/dist/esm/index24.js.map +1 -1
- package/dist/esm/index29.js +248 -903
- package/dist/esm/index29.js.map +1 -1
- package/dist/esm/index30.js +98 -219
- package/dist/esm/index30.js.map +1 -1
- package/dist/esm/index31.js +834 -1085
- package/dist/esm/index31.js.map +1 -1
- package/dist/esm/index32.js +228 -115
- package/dist/esm/index32.js.map +1 -1
- package/dist/esm/index33.js +1185 -79
- package/dist/esm/index33.js.map +1 -1
- package/dist/esm/index34.js +119 -39
- package/dist/esm/index34.js.map +1 -1
- package/dist/esm/index35.js +103 -96
- package/dist/esm/index35.js.map +1 -1
- package/dist/esm/index36.js +46 -21
- package/dist/esm/index36.js.map +1 -1
- package/dist/esm/index37.js +104 -24
- package/dist/esm/index37.js.map +1 -1
- package/dist/esm/index38.js +21 -12
- package/dist/esm/index38.js.map +1 -1
- package/dist/esm/index39.js +4 -6
- package/dist/esm/index39.js.map +1 -1
- package/dist/esm/index40.js +11 -4
- package/dist/esm/index40.js.map +1 -1
- package/dist/esm/index41.js +1 -1
- package/dist/esm/index43.js +24 -89
- package/dist/esm/index43.js.map +1 -1
- package/dist/esm/index44.js +10 -0
- package/dist/esm/index44.js.map +1 -0
- package/dist/esm/index45.js +95 -0
- package/dist/esm/index45.js.map +1 -0
- package/dist/esm/index5.js +2 -2
- package/dist/esm/index6.js +76 -6
- package/dist/esm/index6.js.map +1 -1
- package/dist/esm/index8.js +1 -1
- package/dist/types/conversational-agent.d.ts +11 -1
- package/dist/types/services/attachment-processor.d.ts +41 -0
- package/dist/types/services/index.d.ts +2 -0
- package/dist/types/services/parameter-service.d.ts +43 -0
- package/dist/types/tools/entity-resolver-tool.d.ts +5 -3
- package/package.json +3 -2
- package/src/conversational-agent.ts +97 -5
- package/src/langchain/langchain-agent.ts +9 -1
- package/src/services/attachment-processor.ts +163 -0
- package/src/services/content-store-manager.ts +32 -4
- package/src/services/index.ts +2 -0
- package/src/services/parameter-service.ts +430 -0
- 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
|
-
|  | 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://
|
|
3
|
+
|  | 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
|

|
|
@@ -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://
|
|
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://
|
|
551
|
+
- Review the [HCS Standards](https://hashgraphonline.com/docs/standards) for protocol details
|
|
552
552
|
|
|
553
553
|
## License
|
|
554
554
|
|
|
@@ -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,
|