@composio/mastra 0.1.12-alpha.12 → 0.1.12-alpha.14
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 +0 -31
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -60,37 +60,6 @@ Check out our complete example implementations:
|
|
|
60
60
|
|
|
61
61
|
- [Basic Mastra Integration](../../examples/mastra/src/index.ts)
|
|
62
62
|
|
|
63
|
-
## Provider Configuration
|
|
64
|
-
|
|
65
|
-
The Mastra provider can be configured with various options:
|
|
66
|
-
|
|
67
|
-
```typescript
|
|
68
|
-
const provider = new MastraProvider({
|
|
69
|
-
// API configuration
|
|
70
|
-
apiKey: process.env.MASTRA_API_KEY,
|
|
71
|
-
apiUrl: 'https://custom-api.mastra.ai',
|
|
72
|
-
// Debug mode
|
|
73
|
-
debug: true,
|
|
74
|
-
// Custom execution modifiers
|
|
75
|
-
modifiers: {
|
|
76
|
-
beforeExecute: params => {
|
|
77
|
-
// Transform parameters before execution
|
|
78
|
-
return params;
|
|
79
|
-
},
|
|
80
|
-
afterExecute: response => {
|
|
81
|
-
// Transform response after execution
|
|
82
|
-
return response;
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
// Custom tool execution strategy
|
|
86
|
-
executionStrategy: {
|
|
87
|
-
maxRetries: 3,
|
|
88
|
-
retryDelay: 1000,
|
|
89
|
-
timeout: 30000,
|
|
90
|
-
},
|
|
91
|
-
});
|
|
92
|
-
```
|
|
93
|
-
|
|
94
63
|
## API Reference
|
|
95
64
|
|
|
96
65
|
### MastraProvider Class
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/mastra",
|
|
3
|
-
"version": "0.1.12-alpha.
|
|
3
|
+
"version": "0.1.12-alpha.14",
|
|
4
4
|
"description": "Agentic Provider for mastra in Composio SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@composio/core": "0.1.12-alpha.
|
|
29
|
+
"@composio/core": "0.1.12-alpha.14",
|
|
30
30
|
"@mastra/core": "^0.10.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"tsup": "^8.4.0",
|
|
34
34
|
"typescript": "^5.8.3",
|
|
35
35
|
"vitest": "^3.1.4",
|
|
36
|
-
"@composio/core": "0.1.12-alpha.
|
|
36
|
+
"@composio/core": "0.1.12-alpha.14"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsup",
|