modality-ai 0.0.0 → 0.0.1
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type StreamableHTTPClientTransportOptions } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
2
2
|
import { type StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
3
3
|
import { type SSEClientTransportOptions } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
|
+
import type { ListToolsResult } from "@modelcontextprotocol/sdk/types.js";
|
|
4
5
|
export type TransportType = "http" | "stdio" | "sse";
|
|
5
6
|
export interface HttpTransportConfig {
|
|
6
7
|
type: "http";
|
|
@@ -28,7 +29,7 @@ declare class ModalityClientImpl {
|
|
|
28
29
|
callOnce(method: string, params?: any, autoParse?: boolean): Promise<any>;
|
|
29
30
|
callStream(method: string, params?: any, callback?: (p: any) => void): ReadableStream;
|
|
30
31
|
close(): void;
|
|
31
|
-
listTools(): Promise<
|
|
32
|
+
listTools(): Promise<ListToolsResult>;
|
|
32
33
|
parseContent(toolResult: any): any;
|
|
33
34
|
}
|
|
34
35
|
declare function http(url: string, timeout?: number, options?: StreamableHTTPClientTransportOptions): ModalityClientImpl;
|
|
@@ -38,9 +38,9 @@ declare const chatOptionsSchema: z.ZodObject<{
|
|
|
38
38
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
40
40
|
toolChoice: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
required: "required";
|
|
41
42
|
auto: "auto";
|
|
42
43
|
none: "none";
|
|
43
|
-
required: "required";
|
|
44
44
|
}>>;
|
|
45
45
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
}, z.core.$strip>;
|
|
@@ -84,9 +84,9 @@ export declare const modalityAnswerSchema: z.ZodObject<{
|
|
|
84
84
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
85
85
|
topP: z.ZodOptional<z.ZodNumber>;
|
|
86
86
|
toolChoice: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
required: "required";
|
|
87
88
|
auto: "auto";
|
|
88
89
|
none: "none";
|
|
89
|
-
required: "required";
|
|
90
90
|
}>>;
|
|
91
91
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
92
92
|
}, z.core.$strip>>>;
|
package/package.json
CHANGED