@mindstudio-ai/agent 0.0.20 → 0.1.0
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 +123 -102
- package/dist/cli.js +114 -8
- package/dist/index.d.ts +138 -11
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/llms.txt +82 -10
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mindstudio-ai/agent
|
|
2
2
|
|
|
3
|
-
TypeScript SDK, CLI, and MCP server for
|
|
3
|
+
TypeScript SDK, CLI, and MCP server for MindStudio. One API key gives you access to 200+ AI models (OpenAI, Anthropic, Google, Meta, xAI, DeepSeek, etc.) and 1,000+ integrations including 850+ third-party connectors from the open-source MindStudio Connector Registry (https://github.com/mindstudio-ai/mscr). No separate provider API keys required.
|
|
4
4
|
|
|
5
5
|
This file is the complete API reference. No other documentation is needed to use the SDK.
|
|
6
6
|
|
|
@@ -98,9 +98,9 @@ new MindStudioAgent({
|
|
|
98
98
|
|
|
99
99
|
## Models
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
Direct access to 200+ AI models from every major provider — all through a single API key, billed at cost with no markups.
|
|
102
102
|
|
|
103
|
-
Use `listModels()` or `listModelsByType(
|
|
103
|
+
Use `listModels()` or `listModelsByType()` for full model details, or `listModelsSummary()` / `listModelsSummaryByType()` for a lightweight list (id, name, type, tags) suitable for LLM context windows. Pass a model ID to `modelOverride.model` in methods like `generateText` to select a specific model:
|
|
104
104
|
|
|
105
105
|
```typescript
|
|
106
106
|
const { models } = await agent.listModelsByType('llm_chat');
|
|
@@ -109,7 +109,7 @@ const model = models.find(m => m.name.includes("Gemini"));
|
|
|
109
109
|
const { content } = await agent.generateText({
|
|
110
110
|
message: 'Hello',
|
|
111
111
|
modelOverride: {
|
|
112
|
-
model: model.
|
|
112
|
+
model: model.id,
|
|
113
113
|
temperature: 0.7,
|
|
114
114
|
maxResponseTokens: 1024,
|
|
115
115
|
},
|
|
@@ -541,6 +541,16 @@ Resize a video file
|
|
|
541
541
|
- Input: `{ videoUrl: string, mode: "fit" | "exact", maxWidth?: number, maxHeight?: number, width?: number, height?: number, strategy?: "pad" | "crop", skipAssetCreation?: boolean }`
|
|
542
542
|
- Output: `{ videoUrl: string }`
|
|
543
543
|
|
|
544
|
+
#### runFromConnectorRegistry
|
|
545
|
+
Run a raw API connector to a third-party service
|
|
546
|
+
- Use the /developer/v2/helpers/connectors endpoint to list available services and actions.
|
|
547
|
+
- Use /developer/v2/helpers/connectors/{serviceId}/{actionId} to get the full input configuration for an action.
|
|
548
|
+
- Use /developer/v2/helpers/connections to list your available OAuth connections.
|
|
549
|
+
- The actionId format is "serviceId/actionId" (e.g., "slack/send-message").
|
|
550
|
+
- Pass a __connectionId to authenticate the request with a specific OAuth connection, otherwise the default will be used (if configured).
|
|
551
|
+
- Input: `{ actionId: string, displayName: string, icon: string, configurationValues: object, __connectionId?: string }`
|
|
552
|
+
- Output: `{ data: object }`
|
|
553
|
+
|
|
544
554
|
#### runPackagedWorkflow
|
|
545
555
|
Run a packaged workflow ("custom block")
|
|
546
556
|
- From the user's perspective, packaged workflows are just ordinary blocks. Behind the scenes, they operate like packages/libraries in a programming language, letting the user execute custom functionality.
|
|
@@ -1292,12 +1302,10 @@ Output:
|
|
|
1292
1302
|
models: {
|
|
1293
1303
|
id: string;
|
|
1294
1304
|
name: string; // Display name
|
|
1295
|
-
rawName: string; // Full provider model identifier
|
|
1296
1305
|
type: "llm_chat" | "image_generation" | "video_generation" | "video_analysis" | "text_to_speech" | "vision" | "transcription";
|
|
1297
|
-
publisher: string;
|
|
1298
1306
|
maxTemperature: number;
|
|
1299
1307
|
maxResponseSize: number;
|
|
1300
|
-
|
|
1308
|
+
inputs: object[]; // Accepted input types
|
|
1301
1309
|
}[]
|
|
1302
1310
|
}
|
|
1303
1311
|
```
|
|
@@ -1307,12 +1315,39 @@ List AI models filtered by type.
|
|
|
1307
1315
|
- `modelType`: `"llm_chat"` | `"image_generation"` | `"video_generation"` | `"video_analysis"` | `"text_to_speech"` | `"vision"` | `"transcription"`
|
|
1308
1316
|
- Output: same as `listModels()`
|
|
1309
1317
|
|
|
1318
|
+
#### `listModelsSummary()`
|
|
1319
|
+
List all available AI models (summary). Returns only id, name, type, and tags. Suitable for display or consumption inside a model context window.
|
|
1320
|
+
|
|
1321
|
+
Output:
|
|
1322
|
+
```typescript
|
|
1323
|
+
{
|
|
1324
|
+
models: {
|
|
1325
|
+
id: string;
|
|
1326
|
+
name: string;
|
|
1327
|
+
type: "llm_chat" | "image_generation" | "video_generation" | "video_analysis" | "text_to_speech" | "vision" | "transcription";
|
|
1328
|
+
tags: string; // Comma-separated tags
|
|
1329
|
+
}[]
|
|
1330
|
+
}
|
|
1331
|
+
```
|
|
1332
|
+
|
|
1333
|
+
#### `listModelsSummaryByType(modelType)`
|
|
1334
|
+
List AI models (summary) filtered by type.
|
|
1335
|
+
- `modelType`: `"llm_chat"` | `"image_generation"` | `"video_generation"` | `"video_analysis"` | `"text_to_speech"` | `"vision"` | `"transcription"`
|
|
1336
|
+
- Output: same as `listModelsSummary()`
|
|
1337
|
+
|
|
1310
1338
|
#### `listConnectors()`
|
|
1311
|
-
List available connector services (Slack, Google, HubSpot, etc.).
|
|
1339
|
+
List available connector services (Slack, Google, HubSpot, etc.) and their actions.
|
|
1312
1340
|
|
|
1313
1341
|
Output:
|
|
1314
1342
|
```typescript
|
|
1315
|
-
{
|
|
1343
|
+
{
|
|
1344
|
+
services: {
|
|
1345
|
+
id: string;
|
|
1346
|
+
name: string;
|
|
1347
|
+
icon: string;
|
|
1348
|
+
actions: { id: string; name: string }[];
|
|
1349
|
+
}[]
|
|
1350
|
+
}
|
|
1316
1351
|
```
|
|
1317
1352
|
|
|
1318
1353
|
#### `getConnector(serviceId)`
|
|
@@ -1320,5 +1355,42 @@ Get details for a single connector service by ID.
|
|
|
1320
1355
|
|
|
1321
1356
|
Output:
|
|
1322
1357
|
```typescript
|
|
1323
|
-
{
|
|
1358
|
+
{
|
|
1359
|
+
service: {
|
|
1360
|
+
id: string;
|
|
1361
|
+
name: string;
|
|
1362
|
+
icon: string;
|
|
1363
|
+
actions: { id: string; name: string }[];
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
```
|
|
1367
|
+
|
|
1368
|
+
#### `getConnectorAction(serviceId, actionId)`
|
|
1369
|
+
Get the full configuration for a connector action, including all input fields needed to call it via `runFromConnectorRegistry`. Connectors are sourced from the open-source MindStudio Connector Registry (MSCR) with 850+ third-party service integrations.
|
|
1370
|
+
|
|
1371
|
+
Output:
|
|
1372
|
+
```typescript
|
|
1373
|
+
{
|
|
1374
|
+
action: {
|
|
1375
|
+
id: string;
|
|
1376
|
+
name: string;
|
|
1377
|
+
description: string;
|
|
1378
|
+
quickHelp: string;
|
|
1379
|
+
configuration: { title: string; items: { label: string; helpText: string; variable: string; type: string; defaultValue: string; placeholder: string; selectOptions?: object }[] }[];
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
```
|
|
1383
|
+
|
|
1384
|
+
#### `listConnections()`
|
|
1385
|
+
List OAuth connections for the organization. Use the returned connection IDs when calling connector actions. Connectors require the user to connect to the third-party service in MindStudio before they can be used.
|
|
1386
|
+
|
|
1387
|
+
Output:
|
|
1388
|
+
```typescript
|
|
1389
|
+
{
|
|
1390
|
+
connections: {
|
|
1391
|
+
id: string; // Connection ID to pass to connector actions
|
|
1392
|
+
provider: string; // Integration provider (e.g. slack, google)
|
|
1393
|
+
name: string; // Display name or account identifier
|
|
1394
|
+
}[]
|
|
1395
|
+
}
|
|
1324
1396
|
```
|