@mastra/client-js 0.0.0-fix-tool-call-history-20250730195323 → 0.0.0-fix-tool-call-history-3-20250806004225
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/.turbo/turbo-build.log +9 -10
- package/CHANGELOG.md +97 -3
- package/dist/adapters/agui.d.ts +23 -0
- package/dist/adapters/agui.d.ts.map +1 -0
- package/dist/client.d.ts +265 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/example.d.ts +2 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/index.cjs +26 -10
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +4 -1328
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -10
- package/dist/index.js.map +1 -0
- package/dist/resources/a2a.d.ts +44 -0
- package/dist/resources/a2a.d.ts.map +1 -0
- package/dist/resources/agent.d.ts +112 -0
- package/dist/resources/agent.d.ts.map +1 -0
- package/dist/resources/base.d.ts +13 -0
- package/dist/resources/base.d.ts.map +1 -0
- package/dist/resources/index.d.ts +11 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/legacy-workflow.d.ts +87 -0
- package/dist/resources/legacy-workflow.d.ts.map +1 -0
- package/dist/resources/mcp-tool.d.ts +27 -0
- package/dist/resources/mcp-tool.d.ts.map +1 -0
- package/dist/resources/memory-thread.d.ts +53 -0
- package/dist/resources/memory-thread.d.ts.map +1 -0
- package/dist/resources/network-memory-thread.d.ts +47 -0
- package/dist/resources/network-memory-thread.d.ts.map +1 -0
- package/dist/resources/network.d.ts +30 -0
- package/dist/resources/network.d.ts.map +1 -0
- package/dist/resources/tool.d.ts +23 -0
- package/dist/resources/tool.d.ts.map +1 -0
- package/dist/resources/vNextNetwork.d.ts +42 -0
- package/dist/resources/vNextNetwork.d.ts.map +1 -0
- package/dist/resources/vector.d.ts +48 -0
- package/dist/resources/vector.d.ts.map +1 -0
- package/dist/resources/workflow.d.ts +154 -0
- package/dist/resources/workflow.d.ts.map +1 -0
- package/dist/types.d.ts +422 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/process-client-tools.d.ts +3 -0
- package/dist/utils/process-client-tools.d.ts.map +1 -0
- package/dist/utils/zod-to-json-schema.d.ts +105 -0
- package/dist/utils/zod-to-json-schema.d.ts.map +1 -0
- package/integration-tests/agui-adapter.test.ts +122 -0
- package/integration-tests/package.json +18 -0
- package/integration-tests/src/mastra/index.ts +35 -0
- package/integration-tests/vitest.config.ts +9 -0
- package/package.json +12 -7
- package/src/adapters/agui.test.ts +145 -3
- package/src/adapters/agui.ts +29 -11
- package/tsconfig.build.json +9 -0
- package/tsconfig.json +1 -1
- package/tsup.config.ts +17 -0
- package/dist/index.d.cts +0 -1328
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
2
|
+
import type { ClientOptions, GetWorkflowResponse, GetWorkflowRunsResponse, GetWorkflowRunsParams, WorkflowRunResult, WorkflowWatchResult, GetWorkflowRunByIdResponse, GetWorkflowRunExecutionResultResponse } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
export declare class Workflow extends BaseResource {
|
|
5
|
+
private workflowId;
|
|
6
|
+
constructor(options: ClientOptions, workflowId: string);
|
|
7
|
+
/**
|
|
8
|
+
* Creates an async generator that processes a readable stream and yields workflow records
|
|
9
|
+
* separated by the Record Separator character (\x1E)
|
|
10
|
+
*
|
|
11
|
+
* @param stream - The readable stream to process
|
|
12
|
+
* @returns An async generator that yields parsed records
|
|
13
|
+
*/
|
|
14
|
+
private streamProcessor;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves details about the workflow
|
|
17
|
+
* @returns Promise containing workflow details including steps and graphs
|
|
18
|
+
*/
|
|
19
|
+
details(): Promise<GetWorkflowResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves all runs for a workflow
|
|
22
|
+
* @param params - Parameters for filtering runs
|
|
23
|
+
* @returns Promise containing workflow runs array
|
|
24
|
+
*/
|
|
25
|
+
runs(params?: GetWorkflowRunsParams): Promise<GetWorkflowRunsResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves a specific workflow run by its ID
|
|
28
|
+
* @param runId - The ID of the workflow run to retrieve
|
|
29
|
+
* @returns Promise containing the workflow run details
|
|
30
|
+
*/
|
|
31
|
+
runById(runId: string): Promise<GetWorkflowRunByIdResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves the execution result for a specific workflow run by its ID
|
|
34
|
+
* @param runId - The ID of the workflow run to retrieve the execution result for
|
|
35
|
+
* @returns Promise containing the workflow run execution result
|
|
36
|
+
*/
|
|
37
|
+
runExecutionResult(runId: string): Promise<GetWorkflowRunExecutionResultResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Cancels a specific workflow run by its ID
|
|
40
|
+
* @param runId - The ID of the workflow run to cancel
|
|
41
|
+
* @returns Promise containing a success message
|
|
42
|
+
*/
|
|
43
|
+
cancelRun(runId: string): Promise<{
|
|
44
|
+
message: string;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Sends an event to a specific workflow run by its ID
|
|
48
|
+
* @param params - Object containing the runId, event and data
|
|
49
|
+
* @returns Promise containing a success message
|
|
50
|
+
*/
|
|
51
|
+
sendRunEvent(params: {
|
|
52
|
+
runId: string;
|
|
53
|
+
event: string;
|
|
54
|
+
data: unknown;
|
|
55
|
+
}): Promise<{
|
|
56
|
+
message: string;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a new workflow run
|
|
60
|
+
* @param params - Optional object containing the optional runId
|
|
61
|
+
* @returns Promise containing the runId of the created run
|
|
62
|
+
*/
|
|
63
|
+
createRun(params?: {
|
|
64
|
+
runId?: string;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
runId: string;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Creates a new workflow run (alias for createRun)
|
|
70
|
+
* @param params - Optional object containing the optional runId
|
|
71
|
+
* @returns Promise containing the runId of the created run
|
|
72
|
+
*/
|
|
73
|
+
createRunAsync(params?: {
|
|
74
|
+
runId?: string;
|
|
75
|
+
}): Promise<{
|
|
76
|
+
runId: string;
|
|
77
|
+
}>;
|
|
78
|
+
/**
|
|
79
|
+
* Starts a workflow run synchronously without waiting for the workflow to complete
|
|
80
|
+
* @param params - Object containing the runId, inputData and runtimeContext
|
|
81
|
+
* @returns Promise containing success message
|
|
82
|
+
*/
|
|
83
|
+
start(params: {
|
|
84
|
+
runId: string;
|
|
85
|
+
inputData: Record<string, any>;
|
|
86
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
87
|
+
}): Promise<{
|
|
88
|
+
message: string;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* Resumes a suspended workflow step synchronously without waiting for the workflow to complete
|
|
92
|
+
* @param params - Object containing the runId, step, resumeData and runtimeContext
|
|
93
|
+
* @returns Promise containing success message
|
|
94
|
+
*/
|
|
95
|
+
resume({ step, runId, resumeData, ...rest }: {
|
|
96
|
+
step: string | string[];
|
|
97
|
+
runId: string;
|
|
98
|
+
resumeData?: Record<string, any>;
|
|
99
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
100
|
+
}): Promise<{
|
|
101
|
+
message: string;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* Starts a workflow run asynchronously and returns a promise that resolves when the workflow is complete
|
|
105
|
+
* @param params - Object containing the optional runId, inputData and runtimeContext
|
|
106
|
+
* @returns Promise containing the workflow execution results
|
|
107
|
+
*/
|
|
108
|
+
startAsync(params: {
|
|
109
|
+
runId?: string;
|
|
110
|
+
inputData: Record<string, any>;
|
|
111
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
112
|
+
}): Promise<WorkflowRunResult>;
|
|
113
|
+
/**
|
|
114
|
+
* Starts a workflow run and returns a stream
|
|
115
|
+
* @param params - Object containing the optional runId, inputData and runtimeContext
|
|
116
|
+
* @returns Promise containing the workflow execution results
|
|
117
|
+
*/
|
|
118
|
+
stream(params: {
|
|
119
|
+
runId?: string;
|
|
120
|
+
inputData: Record<string, any>;
|
|
121
|
+
runtimeContext?: RuntimeContext;
|
|
122
|
+
}): Promise<import("stream/web").ReadableStream<{
|
|
123
|
+
type: string;
|
|
124
|
+
payload: any;
|
|
125
|
+
}>>;
|
|
126
|
+
/**
|
|
127
|
+
* Resumes a suspended workflow step asynchronously and returns a promise that resolves when the workflow is complete
|
|
128
|
+
* @param params - Object containing the runId, step, resumeData and runtimeContext
|
|
129
|
+
* @returns Promise containing the workflow resume results
|
|
130
|
+
*/
|
|
131
|
+
resumeAsync(params: {
|
|
132
|
+
runId: string;
|
|
133
|
+
step: string | string[];
|
|
134
|
+
resumeData?: Record<string, any>;
|
|
135
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
136
|
+
}): Promise<WorkflowRunResult>;
|
|
137
|
+
/**
|
|
138
|
+
* Watches workflow transitions in real-time
|
|
139
|
+
* @param runId - Optional run ID to filter the watch stream
|
|
140
|
+
* @returns AsyncGenerator that yields parsed records from the workflow watch stream
|
|
141
|
+
*/
|
|
142
|
+
watch({ runId }: {
|
|
143
|
+
runId?: string;
|
|
144
|
+
}, onRecord: (record: WorkflowWatchResult) => void): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new ReadableStream from an iterable or async iterable of objects,
|
|
147
|
+
* serializing each as JSON and separating them with the record separator (\x1E).
|
|
148
|
+
*
|
|
149
|
+
* @param records - An iterable or async iterable of objects to stream
|
|
150
|
+
* @returns A ReadableStream emitting the records as JSON strings separated by the record separator
|
|
151
|
+
*/
|
|
152
|
+
static createRecordStream(records: Iterable<any> | AsyncIterable<any>): ReadableStream;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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QAAC,cAAc,CAAC,EAAE,cAAc,CAAA;KAAE;cA6BrC,MAAM;iBAAW,GAAG;;IAiCvF;;;;OAIG;IACH,WAAW,CAAC,MAAM,EAAE;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACjC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACvD,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAY9B;;;;OAIG;IACG,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI;IAsB1F;;;;;;OAMG;IACH,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,cAAc;CAgBvF"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import type { MastraMessageV1, AiMessageType, CoreMessage, QueryResult, StorageThreadType, WorkflowRuns, WorkflowRun, LegacyWorkflowRuns, StorageGetMessagesArg, PaginationInfo, MastraMessageV2 } from '@mastra/core';
|
|
2
|
+
import type { AgentGenerateOptions, AgentStreamOptions, ToolsInput, UIMessageWithMetadata } from '@mastra/core/agent';
|
|
3
|
+
import type { BaseLogMessage, LogLevel } from '@mastra/core/logger';
|
|
4
|
+
import type { MCPToolType, ServerInfo } from '@mastra/core/mcp';
|
|
5
|
+
import type { RuntimeContext } from '@mastra/core/runtime-context';
|
|
6
|
+
import type { MastraScorerEntry, ScoreRowData } from '@mastra/core/scores';
|
|
7
|
+
import type { Workflow, WatchEvent, WorkflowResult } from '@mastra/core/workflows';
|
|
8
|
+
import type { StepAction, StepGraph, LegacyWorkflowRunResult as CoreLegacyWorkflowRunResult } from '@mastra/core/workflows/legacy';
|
|
9
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
10
|
+
import type { ZodSchema } from 'zod';
|
|
11
|
+
export interface ClientOptions {
|
|
12
|
+
/** Base URL for API requests */
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
/** Number of retry attempts for failed requests */
|
|
15
|
+
retries?: number;
|
|
16
|
+
/** Initial backoff time in milliseconds between retries */
|
|
17
|
+
backoffMs?: number;
|
|
18
|
+
/** Maximum backoff time in milliseconds between retries */
|
|
19
|
+
maxBackoffMs?: number;
|
|
20
|
+
/** Custom headers to include with requests */
|
|
21
|
+
headers?: Record<string, string>;
|
|
22
|
+
/** Abort signal for request */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
}
|
|
25
|
+
export interface RequestOptions {
|
|
26
|
+
method?: string;
|
|
27
|
+
headers?: Record<string, string>;
|
|
28
|
+
body?: any;
|
|
29
|
+
stream?: boolean;
|
|
30
|
+
}
|
|
31
|
+
type WithoutMethods<T> = {
|
|
32
|
+
[K in keyof T as T[K] extends (...args: any[]) => any ? never : T[K] extends {
|
|
33
|
+
(): any;
|
|
34
|
+
} ? never : T[K] extends undefined | ((...args: any[]) => any) ? never : K]: T[K];
|
|
35
|
+
};
|
|
36
|
+
export interface GetAgentResponse {
|
|
37
|
+
name: string;
|
|
38
|
+
instructions: string;
|
|
39
|
+
tools: Record<string, GetToolResponse>;
|
|
40
|
+
workflows: Record<string, GetWorkflowResponse>;
|
|
41
|
+
provider: string;
|
|
42
|
+
modelId: string;
|
|
43
|
+
defaultGenerateOptions: WithoutMethods<AgentGenerateOptions>;
|
|
44
|
+
defaultStreamOptions: WithoutMethods<AgentStreamOptions>;
|
|
45
|
+
}
|
|
46
|
+
export type GenerateParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
|
|
47
|
+
messages: string | string[] | CoreMessage[] | AiMessageType[] | UIMessageWithMetadata[];
|
|
48
|
+
output?: T;
|
|
49
|
+
experimental_output?: T;
|
|
50
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
51
|
+
clientTools?: ToolsInput;
|
|
52
|
+
} & WithoutMethods<Omit<AgentGenerateOptions<T>, 'output' | 'experimental_output' | 'runtimeContext' | 'clientTools' | 'abortSignal'>>;
|
|
53
|
+
export type StreamParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
|
|
54
|
+
messages: string | string[] | CoreMessage[] | AiMessageType[] | UIMessageWithMetadata[];
|
|
55
|
+
output?: T;
|
|
56
|
+
experimental_output?: T;
|
|
57
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
58
|
+
clientTools?: ToolsInput;
|
|
59
|
+
} & WithoutMethods<Omit<AgentStreamOptions<T>, 'output' | 'experimental_output' | 'runtimeContext' | 'clientTools' | 'abortSignal'>>;
|
|
60
|
+
export interface GetEvalsByAgentIdResponse extends GetAgentResponse {
|
|
61
|
+
evals: any[];
|
|
62
|
+
instructions: string;
|
|
63
|
+
name: string;
|
|
64
|
+
id: string;
|
|
65
|
+
}
|
|
66
|
+
export interface GetToolResponse {
|
|
67
|
+
id: string;
|
|
68
|
+
description: string;
|
|
69
|
+
inputSchema: string;
|
|
70
|
+
outputSchema: string;
|
|
71
|
+
}
|
|
72
|
+
export interface GetLegacyWorkflowResponse {
|
|
73
|
+
name: string;
|
|
74
|
+
triggerSchema: string;
|
|
75
|
+
steps: Record<string, StepAction<any, any, any, any>>;
|
|
76
|
+
stepGraph: StepGraph;
|
|
77
|
+
stepSubscriberGraph: Record<string, StepGraph>;
|
|
78
|
+
workflowId?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface GetWorkflowRunsParams {
|
|
81
|
+
fromDate?: Date;
|
|
82
|
+
toDate?: Date;
|
|
83
|
+
limit?: number;
|
|
84
|
+
offset?: number;
|
|
85
|
+
resourceId?: string;
|
|
86
|
+
}
|
|
87
|
+
export type GetLegacyWorkflowRunsResponse = LegacyWorkflowRuns;
|
|
88
|
+
export type GetWorkflowRunsResponse = WorkflowRuns;
|
|
89
|
+
export type GetWorkflowRunByIdResponse = WorkflowRun;
|
|
90
|
+
export type GetWorkflowRunExecutionResultResponse = WatchEvent['payload']['workflowState'];
|
|
91
|
+
export type LegacyWorkflowRunResult = {
|
|
92
|
+
activePaths: Record<string, {
|
|
93
|
+
status: string;
|
|
94
|
+
suspendPayload?: any;
|
|
95
|
+
stepPath: string[];
|
|
96
|
+
}>;
|
|
97
|
+
results: CoreLegacyWorkflowRunResult<any, any, any>['results'];
|
|
98
|
+
timestamp: number;
|
|
99
|
+
runId: string;
|
|
100
|
+
};
|
|
101
|
+
export interface GetWorkflowResponse {
|
|
102
|
+
name: string;
|
|
103
|
+
description?: string;
|
|
104
|
+
steps: {
|
|
105
|
+
[key: string]: {
|
|
106
|
+
id: string;
|
|
107
|
+
description: string;
|
|
108
|
+
inputSchema: string;
|
|
109
|
+
outputSchema: string;
|
|
110
|
+
resumeSchema: string;
|
|
111
|
+
suspendSchema: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
allSteps: {
|
|
115
|
+
[key: string]: {
|
|
116
|
+
id: string;
|
|
117
|
+
description: string;
|
|
118
|
+
inputSchema: string;
|
|
119
|
+
outputSchema: string;
|
|
120
|
+
resumeSchema: string;
|
|
121
|
+
suspendSchema: string;
|
|
122
|
+
isWorkflow: boolean;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
stepGraph: Workflow['serializedStepGraph'];
|
|
126
|
+
inputSchema: string;
|
|
127
|
+
outputSchema: string;
|
|
128
|
+
}
|
|
129
|
+
export type WorkflowWatchResult = WatchEvent & {
|
|
130
|
+
runId: string;
|
|
131
|
+
};
|
|
132
|
+
export type WorkflowRunResult = WorkflowResult<any, any>;
|
|
133
|
+
export interface UpsertVectorParams {
|
|
134
|
+
indexName: string;
|
|
135
|
+
vectors: number[][];
|
|
136
|
+
metadata?: Record<string, any>[];
|
|
137
|
+
ids?: string[];
|
|
138
|
+
}
|
|
139
|
+
export interface CreateIndexParams {
|
|
140
|
+
indexName: string;
|
|
141
|
+
dimension: number;
|
|
142
|
+
metric?: 'cosine' | 'euclidean' | 'dotproduct';
|
|
143
|
+
}
|
|
144
|
+
export interface QueryVectorParams {
|
|
145
|
+
indexName: string;
|
|
146
|
+
queryVector: number[];
|
|
147
|
+
topK?: number;
|
|
148
|
+
filter?: Record<string, any>;
|
|
149
|
+
includeVector?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export interface QueryVectorResponse {
|
|
152
|
+
results: QueryResult[];
|
|
153
|
+
}
|
|
154
|
+
export interface GetVectorIndexResponse {
|
|
155
|
+
dimension: number;
|
|
156
|
+
metric: 'cosine' | 'euclidean' | 'dotproduct';
|
|
157
|
+
count: number;
|
|
158
|
+
}
|
|
159
|
+
export interface SaveMessageToMemoryParams {
|
|
160
|
+
messages: (MastraMessageV1 | MastraMessageV2)[];
|
|
161
|
+
agentId: string;
|
|
162
|
+
}
|
|
163
|
+
export interface SaveNetworkMessageToMemoryParams {
|
|
164
|
+
messages: (MastraMessageV1 | MastraMessageV2)[];
|
|
165
|
+
networkId: string;
|
|
166
|
+
}
|
|
167
|
+
export type SaveMessageToMemoryResponse = (MastraMessageV1 | MastraMessageV2)[];
|
|
168
|
+
export interface CreateMemoryThreadParams {
|
|
169
|
+
title?: string;
|
|
170
|
+
metadata?: Record<string, any>;
|
|
171
|
+
resourceId: string;
|
|
172
|
+
threadId?: string;
|
|
173
|
+
agentId: string;
|
|
174
|
+
}
|
|
175
|
+
export interface CreateNetworkMemoryThreadParams {
|
|
176
|
+
title?: string;
|
|
177
|
+
metadata?: Record<string, any>;
|
|
178
|
+
resourceId: string;
|
|
179
|
+
threadId?: string;
|
|
180
|
+
networkId: string;
|
|
181
|
+
}
|
|
182
|
+
export type CreateMemoryThreadResponse = StorageThreadType;
|
|
183
|
+
export interface GetMemoryThreadParams {
|
|
184
|
+
resourceId: string;
|
|
185
|
+
agentId: string;
|
|
186
|
+
}
|
|
187
|
+
export interface GetNetworkMemoryThreadParams {
|
|
188
|
+
resourceId: string;
|
|
189
|
+
networkId: string;
|
|
190
|
+
}
|
|
191
|
+
export type GetMemoryThreadResponse = StorageThreadType[];
|
|
192
|
+
export interface UpdateMemoryThreadParams {
|
|
193
|
+
title: string;
|
|
194
|
+
metadata: Record<string, any>;
|
|
195
|
+
resourceId: string;
|
|
196
|
+
}
|
|
197
|
+
export interface GetMemoryThreadMessagesParams {
|
|
198
|
+
/**
|
|
199
|
+
* Limit the number of messages to retrieve (default: 40)
|
|
200
|
+
*/
|
|
201
|
+
limit?: number;
|
|
202
|
+
}
|
|
203
|
+
export type GetMemoryThreadMessagesPaginatedParams = Omit<StorageGetMessagesArg, 'threadConfig' | 'threadId'>;
|
|
204
|
+
export interface GetMemoryThreadMessagesResponse {
|
|
205
|
+
messages: CoreMessage[];
|
|
206
|
+
uiMessages: AiMessageType[];
|
|
207
|
+
}
|
|
208
|
+
export type GetMemoryThreadMessagesPaginatedResponse = PaginationInfo & {
|
|
209
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
210
|
+
};
|
|
211
|
+
export interface GetLogsParams {
|
|
212
|
+
transportId: string;
|
|
213
|
+
fromDate?: Date;
|
|
214
|
+
toDate?: Date;
|
|
215
|
+
logLevel?: LogLevel;
|
|
216
|
+
filters?: Record<string, string>;
|
|
217
|
+
page?: number;
|
|
218
|
+
perPage?: number;
|
|
219
|
+
}
|
|
220
|
+
export interface GetLogParams {
|
|
221
|
+
runId: string;
|
|
222
|
+
transportId: string;
|
|
223
|
+
fromDate?: Date;
|
|
224
|
+
toDate?: Date;
|
|
225
|
+
logLevel?: LogLevel;
|
|
226
|
+
filters?: Record<string, string>;
|
|
227
|
+
page?: number;
|
|
228
|
+
perPage?: number;
|
|
229
|
+
}
|
|
230
|
+
export type GetLogsResponse = {
|
|
231
|
+
logs: BaseLogMessage[];
|
|
232
|
+
total: number;
|
|
233
|
+
page: number;
|
|
234
|
+
perPage: number;
|
|
235
|
+
hasMore: boolean;
|
|
236
|
+
};
|
|
237
|
+
export type RequestFunction = (path: string, options?: RequestOptions) => Promise<any>;
|
|
238
|
+
type SpanStatus = {
|
|
239
|
+
code: number;
|
|
240
|
+
};
|
|
241
|
+
type SpanOther = {
|
|
242
|
+
droppedAttributesCount: number;
|
|
243
|
+
droppedEventsCount: number;
|
|
244
|
+
droppedLinksCount: number;
|
|
245
|
+
};
|
|
246
|
+
type SpanEventAttributes = {
|
|
247
|
+
key: string;
|
|
248
|
+
value: {
|
|
249
|
+
[key: string]: string | number | boolean | null;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
type SpanEvent = {
|
|
253
|
+
attributes: SpanEventAttributes[];
|
|
254
|
+
name: string;
|
|
255
|
+
timeUnixNano: string;
|
|
256
|
+
droppedAttributesCount: number;
|
|
257
|
+
};
|
|
258
|
+
type Span = {
|
|
259
|
+
id: string;
|
|
260
|
+
parentSpanId: string | null;
|
|
261
|
+
traceId: string;
|
|
262
|
+
name: string;
|
|
263
|
+
scope: string;
|
|
264
|
+
kind: number;
|
|
265
|
+
status: SpanStatus;
|
|
266
|
+
events: SpanEvent[];
|
|
267
|
+
links: any[];
|
|
268
|
+
attributes: Record<string, string | number | boolean | null>;
|
|
269
|
+
startTime: number;
|
|
270
|
+
endTime: number;
|
|
271
|
+
duration: number;
|
|
272
|
+
other: SpanOther;
|
|
273
|
+
createdAt: string;
|
|
274
|
+
};
|
|
275
|
+
export interface GetTelemetryResponse {
|
|
276
|
+
traces: Span[];
|
|
277
|
+
}
|
|
278
|
+
export interface GetTelemetryParams {
|
|
279
|
+
name?: string;
|
|
280
|
+
scope?: string;
|
|
281
|
+
page?: number;
|
|
282
|
+
perPage?: number;
|
|
283
|
+
attribute?: Record<string, string>;
|
|
284
|
+
fromDate?: Date;
|
|
285
|
+
toDate?: Date;
|
|
286
|
+
}
|
|
287
|
+
export interface GetNetworkResponse {
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
instructions: string;
|
|
291
|
+
agents: Array<{
|
|
292
|
+
name: string;
|
|
293
|
+
provider: string;
|
|
294
|
+
modelId: string;
|
|
295
|
+
}>;
|
|
296
|
+
routingModel: {
|
|
297
|
+
provider: string;
|
|
298
|
+
modelId: string;
|
|
299
|
+
};
|
|
300
|
+
state?: Record<string, any>;
|
|
301
|
+
}
|
|
302
|
+
export interface GetVNextNetworkResponse {
|
|
303
|
+
id: string;
|
|
304
|
+
name: string;
|
|
305
|
+
instructions: string;
|
|
306
|
+
agents: Array<{
|
|
307
|
+
name: string;
|
|
308
|
+
provider: string;
|
|
309
|
+
modelId: string;
|
|
310
|
+
}>;
|
|
311
|
+
routingModel: {
|
|
312
|
+
provider: string;
|
|
313
|
+
modelId: string;
|
|
314
|
+
};
|
|
315
|
+
workflows: Array<{
|
|
316
|
+
name: string;
|
|
317
|
+
description: string;
|
|
318
|
+
inputSchema: string | undefined;
|
|
319
|
+
outputSchema: string | undefined;
|
|
320
|
+
}>;
|
|
321
|
+
tools: Array<{
|
|
322
|
+
id: string;
|
|
323
|
+
description: string;
|
|
324
|
+
}>;
|
|
325
|
+
}
|
|
326
|
+
export interface GenerateVNextNetworkResponse {
|
|
327
|
+
task: string;
|
|
328
|
+
result: string;
|
|
329
|
+
resourceId: string;
|
|
330
|
+
resourceType: 'none' | 'tool' | 'agent' | 'workflow';
|
|
331
|
+
}
|
|
332
|
+
export interface GenerateOrStreamVNextNetworkParams {
|
|
333
|
+
message: string;
|
|
334
|
+
threadId?: string;
|
|
335
|
+
resourceId?: string;
|
|
336
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
337
|
+
}
|
|
338
|
+
export interface LoopStreamVNextNetworkParams {
|
|
339
|
+
message: string;
|
|
340
|
+
threadId?: string;
|
|
341
|
+
resourceId?: string;
|
|
342
|
+
maxIterations?: number;
|
|
343
|
+
runtimeContext?: RuntimeContext | Record<string, any>;
|
|
344
|
+
}
|
|
345
|
+
export interface LoopVNextNetworkResponse {
|
|
346
|
+
status: 'success';
|
|
347
|
+
result: {
|
|
348
|
+
task: string;
|
|
349
|
+
resourceId: string;
|
|
350
|
+
resourceType: 'agent' | 'workflow' | 'none' | 'tool';
|
|
351
|
+
result: string;
|
|
352
|
+
iteration: number;
|
|
353
|
+
isOneOff: boolean;
|
|
354
|
+
prompt: string;
|
|
355
|
+
threadId?: string | undefined;
|
|
356
|
+
threadResourceId?: string | undefined;
|
|
357
|
+
isComplete?: boolean | undefined;
|
|
358
|
+
completionReason?: string | undefined;
|
|
359
|
+
};
|
|
360
|
+
steps: WorkflowResult<any, any>['steps'];
|
|
361
|
+
}
|
|
362
|
+
export interface McpServerListResponse {
|
|
363
|
+
servers: ServerInfo[];
|
|
364
|
+
next: string | null;
|
|
365
|
+
total_count: number;
|
|
366
|
+
}
|
|
367
|
+
export interface McpToolInfo {
|
|
368
|
+
id: string;
|
|
369
|
+
name: string;
|
|
370
|
+
description?: string;
|
|
371
|
+
inputSchema: string;
|
|
372
|
+
toolType?: MCPToolType;
|
|
373
|
+
}
|
|
374
|
+
export interface McpServerToolListResponse {
|
|
375
|
+
tools: McpToolInfo[];
|
|
376
|
+
}
|
|
377
|
+
export type ClientScoreRowData = Omit<ScoreRowData, 'createdAt' | 'updatedAt'> & {
|
|
378
|
+
createdAt: string;
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
};
|
|
381
|
+
export interface GetScoresByRunIdParams {
|
|
382
|
+
runId: string;
|
|
383
|
+
page?: number;
|
|
384
|
+
perPage?: number;
|
|
385
|
+
}
|
|
386
|
+
export interface GetScoresByScorerIdParams {
|
|
387
|
+
scorerId: string;
|
|
388
|
+
entityId?: string;
|
|
389
|
+
entityType?: string;
|
|
390
|
+
page?: number;
|
|
391
|
+
perPage?: number;
|
|
392
|
+
}
|
|
393
|
+
export interface GetScoresByEntityIdParams {
|
|
394
|
+
entityId: string;
|
|
395
|
+
entityType: string;
|
|
396
|
+
page?: number;
|
|
397
|
+
perPage?: number;
|
|
398
|
+
}
|
|
399
|
+
export interface SaveScoreParams {
|
|
400
|
+
score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>;
|
|
401
|
+
}
|
|
402
|
+
export interface GetScoresResponse {
|
|
403
|
+
pagination: {
|
|
404
|
+
total: number;
|
|
405
|
+
page: number;
|
|
406
|
+
perPage: number;
|
|
407
|
+
hasMore: boolean;
|
|
408
|
+
};
|
|
409
|
+
scores: ClientScoreRowData[];
|
|
410
|
+
}
|
|
411
|
+
export interface SaveScoreResponse {
|
|
412
|
+
score: ClientScoreRowData;
|
|
413
|
+
}
|
|
414
|
+
export type GetScorerResponse = MastraScorerEntry & {
|
|
415
|
+
agentIds: string[];
|
|
416
|
+
workflowIds: string[];
|
|
417
|
+
};
|
|
418
|
+
export interface GetScorersResponse {
|
|
419
|
+
scorers: Array<GetScorerResponse>;
|
|
420
|
+
}
|
|
421
|
+
export {};
|
|
422
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,eAAe,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACtH,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAgB,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,K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;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,kBAAkB,CAAC;CAC3B;AAED,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG;IAClD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,wBAAgB,yBAAyB,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,mCAQ9F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-client-tools.d.ts","sourceRoot":"","sources":["../../src/utils/process-client-tools.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CA2B9F"}
|