@promptbook/openai
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
41 lines (40 loc) • 1.09 kB
TypeScript
import { type ToolCall } from '../../../types/ToolCall';
import type { AgentChipData } from '../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;
};
/**
* 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).
*
* @private [🧠] Maybe public?
*/
export declare function getToolCallChipletInfo(toolCall: ToolCall): ToolCallChipletInfo;