agentnet 0.1.3 → 0.1.5
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 +2 -2
- package/package.json +10 -2
- package/src/store/store.js +1 -1
package/README.md
CHANGED
|
@@ -413,9 +413,9 @@ const compiledTravelAgent = await travelAgent.compile();
|
|
|
413
413
|
|
|
414
414
|
## Examples
|
|
415
415
|
|
|
416
|
-
* **Simple Agent Example**: For beginners, the [`examples/simple/
|
|
416
|
+
* **Simple Agent Example**: For beginners, the [`examples/simple/simple.js`](https://github.com/smartpricing/agentnet/blob/master/examples/simple/simple.js) provides a minimal implementation of an accommodation agent, perfect for understanding the basic concepts of agent definition and tool binding.
|
|
417
417
|
|
|
418
|
-
* **Booking Example**: See a multi-agent system in action for a smart booking scenario in [`examples/smartness/
|
|
418
|
+
* **Booking Example**: See a multi-agent system in action for a smart booking scenario in [`examples/smartness/index.js`](https://github.com/smartpricing/agentnet/blob/master/examples/smartness/index.js). This demonstrates concepts like agent discovery, handoffs, and tool usage in a practical setup.
|
|
419
419
|
|
|
420
420
|
* **Customer Support Example**: Explore a customer support system with specialized agents for different support domains in [`examples/customer-support/README.md`](https://github.com/smartpricing/agentnet/blob/master/examples/customer-support/README.md). This shows how agents can collaborate to resolve complex customer inquiries.
|
|
421
421
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentnet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Agent library used by Smartness",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -22,5 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"jest": "^29.7.0"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"agent",
|
|
28
|
+
"agentnet",
|
|
29
|
+
"agent network",
|
|
30
|
+
"agent framework",
|
|
31
|
+
"agent library",
|
|
32
|
+
"agentic system"
|
|
33
|
+
]
|
|
26
34
|
}
|
package/src/store/store.js
CHANGED
|
@@ -122,7 +122,7 @@ export function postgresStore(config = null) {
|
|
|
122
122
|
|
|
123
123
|
return {
|
|
124
124
|
connect: async function() {
|
|
125
|
-
if (
|
|
125
|
+
if (db === null) {
|
|
126
126
|
// For URL-style connection string
|
|
127
127
|
if (typeof connectionConfig === 'string') {
|
|
128
128
|
db = pgPromise(connectionConfig);
|