@ant-design/x-sdk
Version:
placeholder for @ant-design/x-sdk
27 lines (26 loc) • 831 B
TypeScript
import { AnyObject } from '../_util/type';
import { XRequestOptions } from '../x-request';
export interface XMCPTool {
name: string;
description?: string;
inputSchema: {
type: 'object';
properties: AnyObject;
};
annotations?: {
title?: string;
readOnlyHint?: boolean;
destructiveHint?: boolean;
idempotentHint?: boolean;
openWorldHint?: boolean;
};
}
export type XMCPClientOptions = Pick<XRequestOptions, 'params' | 'headers' | 'timeout' | 'fetch'>;
declare class XMCPClientClass {
readonly baseURL: string;
private options;
constructor(baseURL: string, options?: XMCPClientOptions);
tools(): Promise<XMCPTool[]>;
}
declare function XMCPClient(baseURL: string, options?: XMCPClientOptions): XMCPClientClass;
export default XMCPClient;