UNPKG

@longevity-genie/biostratum-mcp-plugin

Version:

ElizaOS MCP plugin for biostratum - a comprehensive MCP composer and adapter solution

43 lines (42 loc) 1.59 kB
import { type HandlerCallback, type IAgentRuntime, type Media, type Memory } from "@elizaos/core"; import { type State } from "@elizaos/core"; export declare function processResourceResult(result: { contents: Array<{ uri: string; mimeType?: string; text?: string; blob?: string; }>; }, uri: string): { resourceContent: string; resourceMeta: string; }; export declare function processToolResult(result: { content: Array<{ type: string; text?: string; mimeType?: string; data?: string; resource?: { uri: string; text?: string; blob?: string; }; }>; isError?: boolean; }, serverName: string, toolName: string, runtime: IAgentRuntime, messageEntityId: string): { toolOutput: string; hasAttachments: boolean; attachments: Media[]; }; export declare function handleResourceAnalysis(runtime: IAgentRuntime, message: Memory, uri: string, serverName: string, resourceContent: string, resourceMeta: string, callback?: HandlerCallback): Promise<void>; export declare function handleToolResponse(runtime: IAgentRuntime, message: Memory, serverName: string, toolName: string, toolArgs: Record<string, unknown>, toolOutput: string, hasAttachments: boolean, attachments: Media[], state: State, mcpProvider: { values: { mcp: unknown; }; data: { mcp: unknown; }; text: string; }, callback?: HandlerCallback): Promise<void>; export declare function sendInitialResponse(callback?: HandlerCallback): Promise<void>;