tweaks
This commit is contained in:
parent
14740aacea
commit
bc6458d3fb
1 changed files with 4 additions and 10 deletions
|
|
@ -4,7 +4,7 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
||||||
import {
|
import {
|
||||||
type CallToolResult,
|
type CallToolResult,
|
||||||
type LoggingMessageNotification,
|
type LoggingMessageNotification,
|
||||||
type McpError,
|
McpError,
|
||||||
ErrorCode,
|
ErrorCode,
|
||||||
} from "@modelcontextprotocol/sdk/types.js";
|
} from "@modelcontextprotocol/sdk/types.js";
|
||||||
|
|
||||||
|
|
@ -49,15 +49,9 @@ export interface UITemplatedToolCallRendererProps {
|
||||||
/** Optional result from tool execution to pass to the tool UI once it's ready */
|
/** Optional result from tool execution to pass to the tool UI once it's ready */
|
||||||
toolResult?: CallToolResult;
|
toolResult?: CallToolResult;
|
||||||
|
|
||||||
onopenlink?: (
|
onopenlink?: AppBridge["onopenlink"];
|
||||||
params: McpUiOpenLinkRequest["params"],
|
onmessage?: AppBridge["onmessage"];
|
||||||
extra: RequestExtra,
|
onloggingmessage?: AppBridge["onloggingmessage"];
|
||||||
) => Promise<McpUiOpenLinkResult>;
|
|
||||||
onmessage?: (
|
|
||||||
params: McpUiMessageRequest["params"],
|
|
||||||
extra: RequestExtra,
|
|
||||||
) => Promise<McpUiMessageResult>;
|
|
||||||
onloggingmessage?: (params: LoggingMessageNotification["params"]) => void;
|
|
||||||
|
|
||||||
/** Callback invoked when an error occurs during setup or message handling */
|
/** Callback invoked when an error occurs during setup or message handling */
|
||||||
onerror?: (error: Error) => void;
|
onerror?: (error: Error) => void;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue