@mastra/client-js 0.1.0-alpha.6 → 0.1.0-alpha.7
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/dist/index.d.mts +63 -64
- package/dist/index.mjs +145 -131
- package/package.json +1 -1
- package/src/client.ts +8 -74
- package/src/example.ts +34 -0
- package/src/index.test.ts +130 -73
- package/src/resources/agent.ts +15 -10
- package/src/resources/base.ts +79 -0
- package/src/resources/index.ts +3 -2
- package/src/resources/memory-thread.ts +11 -5
- package/src/resources/tool.ts +7 -4
- package/src/resources/vector.ts +7 -4
- package/src/resources/workflow.ts +7 -4
- package/src/types.ts +5 -0
package/src/types.ts
CHANGED
|
@@ -3,10 +3,15 @@ import type { JSONSchema7 } from 'json-schema';
|
|
|
3
3
|
import { ZodSchema } from "zod";
|
|
4
4
|
|
|
5
5
|
export interface ClientOptions {
|
|
6
|
+
/** Base URL for API requests */
|
|
6
7
|
baseUrl: string;
|
|
8
|
+
/** Number of retry attempts for failed requests */
|
|
7
9
|
retries?: number;
|
|
10
|
+
/** Initial backoff time in milliseconds between retries */
|
|
8
11
|
backoffMs?: number;
|
|
12
|
+
/** Maximum backoff time in milliseconds between retries */
|
|
9
13
|
maxBackoffMs?: number;
|
|
14
|
+
/** Custom headers to include with requests */
|
|
10
15
|
headers?: Record<string, string>;
|
|
11
16
|
}
|
|
12
17
|
|