UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

66 lines (65 loc) 2.15 kB
import type { ToolCall } from '../../../types/ToolCall'; import type { AgentChipData } from '../AgentChip/AgentChip'; /** * Tool call chiplet information including agent data for team tools * * @private utility of `<Chat/>` */ export type ToolCallChipletInfo = { /** * Display text for the chiplet. */ text: string; /** * Agent data for team tools (if applicable). */ agentData?: AgentChipData; }; /** * Optional user-facing title overrides for technical tool names. * * @private utility of `<Chat/>` */ type ToolCallTitleOverrides = Readonly<Record<string, string>>; /** * Optional localized labels used for user-facing chip text. * * @private utility of `<Chat/>` */ type ToolCallChipTranslations = { readonly toolCallTimeChipLabel?: string; readonly toolCallTimeoutChipLabel?: string; readonly toolCallTimeoutChipCancelledLabel?: string; readonly toolCallTimeoutChipInactiveLabel?: string; readonly toolCallTimeoutChipUpdatedLabel?: string; readonly toolCallTimeoutChipFallbackLabel?: string; }; /** * Builds display text for a tool call chiplet. * * @param chipletInfo - Chiplet metadata for the tool call. * * @private utility of `<Chat/>` */ export declare function buildToolCallChipText(chipletInfo: ToolCallChipletInfo): string; /** * Technical to user-friendly tool names and emojis * * @private utility of `<Chat/>` [🧠] Maybe public? */ export declare const TOOL_TITLES: Record<string, { title: string; emoji: string; }>; /** * Gets the chiplet information including text and agent data (for team tools). * * @param toolCall - Tool call to build chiplet info for. * @param locale - Optional BCP-47 locale string used to format time labels. * @param titleOverrides - Optional localized titles keyed by tool name. * @param chipTranslations - Optional localized chip templates for time-related tools. * * @private [🧠] Maybe public? */ export declare function getToolCallChipletInfo(toolCall: ToolCall, locale?: string, titleOverrides?: ToolCallTitleOverrides, chipTranslations?: ToolCallChipTranslations): ToolCallChipletInfo; export {};