@mastra/client-js 0.0.0-update-scorers-api-20250801170445 → 0.0.0-usechat-duplicate-20251016110554

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 (89) hide show
  1. package/CHANGELOG.md +1050 -3
  2. package/README.md +6 -8
  3. package/dist/client.d.ts +57 -44
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/index.cjs +1735 -850
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.ts +3 -2
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1734 -851
  10. package/dist/index.js.map +1 -1
  11. package/dist/resources/a2a.d.ts +15 -18
  12. package/dist/resources/a2a.d.ts.map +1 -1
  13. package/dist/resources/agent-builder.d.ts +160 -0
  14. package/dist/resources/agent-builder.d.ts.map +1 -0
  15. package/dist/resources/agent.d.ts +89 -17
  16. package/dist/resources/agent.d.ts.map +1 -1
  17. package/dist/resources/base.d.ts +1 -1
  18. package/dist/resources/base.d.ts.map +1 -1
  19. package/dist/resources/index.d.ts +10 -10
  20. package/dist/resources/index.d.ts.map +1 -1
  21. package/dist/resources/mcp-tool.d.ts +4 -3
  22. package/dist/resources/mcp-tool.d.ts.map +1 -1
  23. package/dist/resources/memory-thread.d.ts +3 -3
  24. package/dist/resources/memory-thread.d.ts.map +1 -1
  25. package/dist/resources/network-memory-thread.d.ts +3 -3
  26. package/dist/resources/network-memory-thread.d.ts.map +1 -1
  27. package/dist/resources/observability.d.ts +35 -0
  28. package/dist/resources/observability.d.ts.map +1 -0
  29. package/dist/resources/tool.d.ts +4 -3
  30. package/dist/resources/tool.d.ts.map +1 -1
  31. package/dist/resources/vector.d.ts +7 -4
  32. package/dist/resources/vector.d.ts.map +1 -1
  33. package/dist/resources/workflow.d.ts +129 -14
  34. package/dist/resources/workflow.d.ts.map +1 -1
  35. package/dist/tools.d.ts +22 -0
  36. package/dist/tools.d.ts.map +1 -0
  37. package/dist/types.d.ts +100 -43
  38. package/dist/types.d.ts.map +1 -1
  39. package/dist/utils/index.d.ts +2 -0
  40. package/dist/utils/index.d.ts.map +1 -1
  41. package/dist/utils/process-client-tools.d.ts.map +1 -1
  42. package/dist/utils/process-mastra-stream.d.ts +11 -0
  43. package/dist/utils/process-mastra-stream.d.ts.map +1 -0
  44. package/dist/utils/zod-to-json-schema.d.ts +2 -104
  45. package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
  46. package/package.json +24 -16
  47. package/dist/adapters/agui.d.ts +0 -23
  48. package/dist/adapters/agui.d.ts.map +0 -1
  49. package/dist/resources/legacy-workflow.d.ts +0 -87
  50. package/dist/resources/legacy-workflow.d.ts.map +0 -1
  51. package/dist/resources/network.d.ts +0 -30
  52. package/dist/resources/network.d.ts.map +0 -1
  53. package/dist/resources/vNextNetwork.d.ts +0 -42
  54. package/dist/resources/vNextNetwork.d.ts.map +0 -1
  55. package/eslint.config.js +0 -6
  56. package/integration-tests/agui-adapter.test.ts +0 -122
  57. package/integration-tests/package.json +0 -18
  58. package/integration-tests/src/mastra/index.ts +0 -35
  59. package/integration-tests/vitest.config.ts +0 -9
  60. package/src/adapters/agui.test.ts +0 -322
  61. package/src/adapters/agui.ts +0 -239
  62. package/src/client.ts +0 -623
  63. package/src/example.ts +0 -95
  64. package/src/index.test.ts +0 -1226
  65. package/src/index.ts +0 -3
  66. package/src/resources/a2a.ts +0 -88
  67. package/src/resources/agent.ts +0 -785
  68. package/src/resources/base.ts +0 -76
  69. package/src/resources/index.ts +0 -10
  70. package/src/resources/legacy-workflow.ts +0 -242
  71. package/src/resources/mcp-tool.ts +0 -48
  72. package/src/resources/memory-thread.test.ts +0 -285
  73. package/src/resources/memory-thread.ts +0 -99
  74. package/src/resources/network-memory-thread.test.ts +0 -269
  75. package/src/resources/network-memory-thread.ts +0 -81
  76. package/src/resources/network.ts +0 -86
  77. package/src/resources/tool.ts +0 -45
  78. package/src/resources/vNextNetwork.ts +0 -194
  79. package/src/resources/vector.ts +0 -83
  80. package/src/resources/workflow.ts +0 -410
  81. package/src/types.ts +0 -502
  82. package/src/utils/index.ts +0 -11
  83. package/src/utils/process-client-tools.ts +0 -32
  84. package/src/utils/zod-to-json-schema.ts +0 -10
  85. package/src/v2-messages.test.ts +0 -180
  86. package/tsconfig.build.json +0 -9
  87. package/tsconfig.json +0 -5
  88. package/tsup.config.ts +0 -22
  89. package/vitest.config.js +0 -8
package/README.md CHANGED
@@ -53,8 +53,10 @@ const client = new MastraClient({
53
53
  - `getAgents()`: Get all available agents
54
54
  - `getAgent(agentId)`: Get a specific agent instance
55
55
  - `agent.details()`: Get agent details
56
- - `agent.generate(params)`: Generate a response
56
+ - `agent.generate(params)`: Generate a response
57
+ - `agent.generateLegacy(params)`: Legacy API for generating a response (V1 models)
57
58
  - `agent.stream(params)`: Stream a response
59
+ - `agent.streamLegacy(params)`: Legacy API for streaming a response (V1 models)
58
60
  - `agent.getTool(toolId)`: Get agent tool details
59
61
  - `agent.evals()`: Get agent evaluations
60
62
  - `agent.liveEvals()`: Get live evaluations
@@ -79,10 +81,10 @@ const client = new MastraClient({
79
81
  - `getWorkflows()`: Get all workflows
80
82
  - `getWorkflow(workflowId)`: Get a workflow instance
81
83
  - `workflow.details()`: Get workflow details
82
- - `workflow.createRun()`: Create workflow run
83
- - `workflow.createRunAsync()`: Create workflow run (alias)
84
+ - `workflow.createRunAsync()`: Create workflow run
85
+ - `workflow.createRun()`: Deprecated - use createRunAsync() instead
84
86
  - `workflow.startAsync(params)`: Execute the workflow and wait for execution results
85
- - `workflow.resumeAsync(parmas)`: Resume suspended workflow step async
87
+ - `workflow.resumeAsync(params)`: Resume suspended workflow step async
86
88
  - `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run
87
89
  - `workflow.start({runId, triggerData})`: Start a workflow run sync
88
90
  - `workflow.resume(params)`: Resume the workflow run sync
@@ -123,7 +125,3 @@ The client uses the native `fetch` API internally for making HTTP requests. All
123
125
  - Retry logic with exponential backoff
124
126
  - Custom header management
125
127
  - Error handling
126
-
127
- ## License
128
-
129
- MIT
package/dist/client.d.ts CHANGED
@@ -1,19 +1,18 @@
1
- import type { AbstractAgent } from '@ag-ui/client';
1
+ import type { AITraceRecord, AITracesPaginatedArg, WorkflowInfo } from '@mastra/core';
2
2
  import type { ServerDetailInfo } from '@mastra/core/mcp';
3
- import { Agent, MemoryThread, Tool, Workflow, Vector, BaseResource, Network, A2A, MCPTool, LegacyWorkflow } from './resources';
4
- import { NetworkMemoryThread } from './resources/network-memory-thread';
5
- import { VNextNetwork } from './resources/vNextNetwork';
6
- import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, GetLogParams, GetLogsParams, GetLogsResponse, GetMemoryThreadParams, GetMemoryThreadResponse, GetNetworkResponse, GetTelemetryParams, GetTelemetryResponse, GetToolResponse, GetWorkflowResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, McpServerToolListResponse, GetLegacyWorkflowResponse, GetVNextNetworkResponse, GetNetworkMemoryThreadParams, CreateNetworkMemoryThreadParams, SaveNetworkMessageToMemoryParams, GetScorerResponse, GetScoresByScorerIdParams, GetScoresResponse, GetScoresByRunIdParams, GetScoresByEntityIdParams, SaveScoreParams, SaveScoreResponse } from './types';
3
+ import type { RuntimeContext } from '@mastra/core/runtime-context';
4
+ import { Agent, MemoryThread, Tool, Workflow, Vector, BaseResource, A2A, MCPTool, AgentBuilder } from './resources/index.js';
5
+ import { NetworkMemoryThread } from './resources/network-memory-thread.js';
6
+ import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, GetLogParams, GetLogsParams, GetLogsResponse, GetMemoryThreadParams, GetMemoryThreadResponse, GetTelemetryParams, GetTelemetryResponse, GetToolResponse, GetWorkflowResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, McpServerToolListResponse, GetNetworkMemoryThreadParams, CreateNetworkMemoryThreadParams, SaveNetworkMessageToMemoryParams, GetScorerResponse, GetScoresByScorerIdParams, GetScoresResponse, GetScoresByRunIdParams, GetScoresByEntityIdParams, GetScoresBySpanParams, SaveScoreParams, SaveScoreResponse, GetAITracesResponse, GetMemoryConfigParams, GetMemoryConfigResponse, GetMemoryThreadMessagesResponse } from './types.js';
7
7
  export declare class MastraClient extends BaseResource {
8
+ private observability;
8
9
  constructor(options: ClientOptions);
9
10
  /**
10
11
  * Retrieves all available agents
12
+ * @param runtimeContext - Optional runtime context to pass as query parameter
11
13
  * @returns Promise containing map of agent IDs to agent details
12
14
  */
13
- getAgents(): Promise<Record<string, GetAgentResponse>>;
14
- getAGUI({ resourceId }: {
15
- resourceId: string;
16
- }): Promise<Record<string, AbstractAgent>>;
15
+ getAgents(runtimeContext?: RuntimeContext | Record<string, any>): Promise<Record<string, GetAgentResponse>>;
17
16
  /**
18
17
  * Gets an agent instance by ID
19
18
  * @param agentId - ID of the agent to retrieve
@@ -26,6 +25,12 @@ export declare class MastraClient extends BaseResource {
26
25
  * @returns Promise containing array of memory threads
27
26
  */
28
27
  getMemoryThreads(params: GetMemoryThreadParams): Promise<GetMemoryThreadResponse>;
28
+ /**
29
+ * Retrieves memory config for a resource
30
+ * @param params - Parameters containing the resource ID
31
+ * @returns Promise containing array of memory threads
32
+ */
33
+ getMemoryConfig(params: GetMemoryConfigParams): Promise<GetMemoryConfigResponse>;
29
34
  /**
30
35
  * Creates a new memory thread
31
36
  * @param params - Parameters for creating the memory thread
@@ -38,6 +43,17 @@ export declare class MastraClient extends BaseResource {
38
43
  * @returns MemoryThread instance
39
44
  */
40
45
  getMemoryThread(threadId: string, agentId: string): MemoryThread;
46
+ getThreadMessages(threadId: string, opts?: {
47
+ agentId?: string;
48
+ networkId?: string;
49
+ }): Promise<GetMemoryThreadMessagesResponse>;
50
+ deleteThread(threadId: string, opts?: {
51
+ agentId?: string;
52
+ networkId?: string;
53
+ }): Promise<{
54
+ success: boolean;
55
+ message: string;
56
+ }>;
41
57
  /**
42
58
  * Saves messages to memory
43
59
  * @param params - Parameters containing messages to save
@@ -84,37 +100,38 @@ export declare class MastraClient extends BaseResource {
84
100
  }>;
85
101
  /**
86
102
  * Retrieves all available tools
103
+ * @param runtimeContext - Optional runtime context to pass as query parameter
87
104
  * @returns Promise containing map of tool IDs to tool details
88
105
  */
89
- getTools(): Promise<Record<string, GetToolResponse>>;
106
+ getTools(runtimeContext?: RuntimeContext | Record<string, any>): Promise<Record<string, GetToolResponse>>;
90
107
  /**
91
108
  * Gets a tool instance by ID
92
109
  * @param toolId - ID of the tool to retrieve
93
110
  * @returns Tool instance
94
111
  */
95
112
  getTool(toolId: string): Tool;
96
- /**
97
- * Retrieves all available legacy workflows
98
- * @returns Promise containing map of legacy workflow IDs to legacy workflow details
99
- */
100
- getLegacyWorkflows(): Promise<Record<string, GetLegacyWorkflowResponse>>;
101
- /**
102
- * Gets a legacy workflow instance by ID
103
- * @param workflowId - ID of the legacy workflow to retrieve
104
- * @returns Legacy Workflow instance
105
- */
106
- getLegacyWorkflow(workflowId: string): LegacyWorkflow;
107
113
  /**
108
114
  * Retrieves all available workflows
115
+ * @param runtimeContext - Optional runtime context to pass as query parameter
109
116
  * @returns Promise containing map of workflow IDs to workflow details
110
117
  */
111
- getWorkflows(): Promise<Record<string, GetWorkflowResponse>>;
118
+ getWorkflows(runtimeContext?: RuntimeContext | Record<string, any>): Promise<Record<string, GetWorkflowResponse>>;
112
119
  /**
113
120
  * Gets a workflow instance by ID
114
121
  * @param workflowId - ID of the workflow to retrieve
115
122
  * @returns Workflow instance
116
123
  */
117
124
  getWorkflow(workflowId: string): Workflow;
125
+ /**
126
+ * Gets all available agent builder actions
127
+ * @returns Promise containing map of action IDs to action details
128
+ */
129
+ getAgentBuilderActions(): Promise<Record<string, WorkflowInfo>>;
130
+ /**
131
+ * Gets an agent builder instance for executing agent-builder workflows
132
+ * @returns AgentBuilder instance
133
+ */
134
+ getAgentBuilderAction(actionId: string): AgentBuilder;
118
135
  /**
119
136
  * Gets a vector instance by name
120
137
  * @param vectorName - Name of the vector to retrieve
@@ -146,28 +163,6 @@ export declare class MastraClient extends BaseResource {
146
163
  * @returns Promise containing telemetry data
147
164
  */
148
165
  getTelemetry(params?: GetTelemetryParams): Promise<GetTelemetryResponse>;
149
- /**
150
- * Retrieves all available networks
151
- * @returns Promise containing map of network IDs to network details
152
- */
153
- getNetworks(): Promise<Array<GetNetworkResponse>>;
154
- /**
155
- * Retrieves all available vNext networks
156
- * @returns Promise containing map of vNext network IDs to vNext network details
157
- */
158
- getVNextNetworks(): Promise<Array<GetVNextNetworkResponse>>;
159
- /**
160
- * Gets a network instance by ID
161
- * @param networkId - ID of the network to retrieve
162
- * @returns Network instance
163
- */
164
- getNetwork(networkId: string): Network;
165
- /**
166
- * Gets a vNext network instance by ID
167
- * @param networkId - ID of the vNext network to retrieve
168
- * @returns vNext Network instance
169
- */
170
- getVNextNetwork(networkId: string): VNextNetwork;
171
166
  /**
172
167
  * Retrieves a list of available MCP servers.
173
168
  * @param params - Optional parameters for pagination (limit, offset).
@@ -261,5 +256,23 @@ export declare class MastraClient extends BaseResource {
261
256
  * @returns Promise containing the saved score
262
257
  */
263
258
  saveScore(params: SaveScoreParams): Promise<SaveScoreResponse>;
259
+ /**
260
+ * Retrieves model providers with available keys
261
+ * @returns Promise containing model providers with available keys
262
+ */
263
+ getModelProviders(): Promise<string[]>;
264
+ getAITrace(traceId: string): Promise<AITraceRecord>;
265
+ getAITraces(params: AITracesPaginatedArg): Promise<GetAITracesResponse>;
266
+ getScoresBySpan(params: GetScoresBySpanParams): Promise<GetScoresResponse>;
267
+ score(params: {
268
+ scorerName: string;
269
+ targets: Array<{
270
+ traceId: string;
271
+ spanId?: string;
272
+ }>;
273
+ }): Promise<{
274
+ status: string;
275
+ message: string;
276
+ }>;
264
277
  }
265
278
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa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