@promptbook/openai
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
41 lines (40 loc) • 1.14 kB
TypeScript
import type { ToolCall } from '../../../types/ToolCall';
import type { AgentChipData } from '../AgentChip';
/**
* Utility to format tool call information for user-friendly display.
*/
/**
* Tool call chiplet information including agent data for team tools
*/
export type ToolCallChipletInfo = {
/**
* Display text for the chiplet
*/
text: string;
/**
* Agent data for team tools (if applicable)
*/
agentData?: AgentChipData;
};
/**
* Technical to user-friendly tool names and emojis
*
* @private [🧠] Maybe public?
*/
export declare const TOOL_TITLES: Record<string, {
title: string;
emoji: string;
}>;
/**
* Gets the user-friendly text for a tool call chiplet.
*
* @deprecated Use getToolCallChipletInfo instead which returns both text and agent data
* @private [🧠] Maybe public?
*/
export declare function getToolCallChipletText(toolCall: ToolCall): string;
/**
* Gets the chiplet information including text and agent data (for team tools).
*
* @private [🧠] Maybe public?
*/
export declare function getToolCallChipletInfo(toolCall: ToolCall): ToolCallChipletInfo;