@promptbook/core
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
56 lines (55 loc) • 1.9 kB
TypeScript
import { type ReactElement } from 'react';
import type { ChatMessage } from '../types/ChatMessage';
/**
* Rendering options for advanced raw payload details.
*
* @private function of ChatToolCallModal
*/
type AdvancedToolCallDetailsOptions = {
/**
* Tool call currently selected in the modal.
*/
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
/**
* Optional mapping of tool titles.
*/
toolTitles?: Record<string, string>;
/**
* Optional list of tools that were available to the model during the turn that produced this tool call.
*/
availableTools?: ChatMessage['availableTools'];
/**
* Resolved theme used by embedded Monaco viewers in the advanced modal.
*/
mode?: 'LIGHT' | 'DARK';
};
/**
* Renders a technical view with raw tool input/output payloads.
*
* @param options - Rendering options for advanced mode.
*
* @private function of ChatToolCallModal
*/
export declare function renderAdvancedToolCallDetails(options: AdvancedToolCallDetailsOptions): ReactElement;
/**
* Builds a markdown advanced report for one tool call.
*
* The report includes the same payload sections rendered in the advanced modal,
* so copied/saved output always mirrors the visible technical details.
*
* @param options - Rendering options for advanced mode.
* @returns Markdown report content.
*
* @private function of ChatToolCallModal
*/
export declare function createAdvancedToolCallReportMarkdown(options: AdvancedToolCallDetailsOptions): string;
/**
* Creates a stable filename for downloaded advanced tool-call reports.
*
* @param toolCall - Tool call currently selected in the modal.
* @returns Safe markdown filename.
*
* @private function of ChatToolCallModal
*/
export declare function createAdvancedToolCallReportFilename(toolCall: NonNullable<ChatMessage['toolCalls']>[number]): string;
export {};