UNPKG

@promptbook/google

Version:

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

40 lines (39 loc) 1.28 kB
import { type ReactElement } from 'react'; import { Color } from '../../../utils/color/Color'; import type { TODO_any } from '../../../utils/organization/TODO_any'; import type { WithTake } from '../../../utils/take/interfaces/ITakeChain'; import type { ChatParticipant } from '../types/ChatParticipant'; import type { ChatMessage } from '../types/ChatMessage'; /** * Rendering options for self-learning tool calls. * * @private function of ChatToolCallModal */ type RenderSelfLearningToolCallDetailsOptions = { /** * Tool call being rendered. */ toolCall: NonNullable<ChatMessage['toolCalls']>[number]; /** * Parsed tool result payload. */ resultRaw: TODO_any; /** * Optional agent metadata used for the header avatars. */ agentParticipant?: ChatParticipant; /** * Fallback color used when participant metadata is incomplete. */ buttonColor: WithTake<Color>; }; /** * Renders the self-learning-specific tool call detail view. * * @param options - Self-learning tool call data. * @returns Self-learning summary UI. * * @private function of ChatToolCallModal */ export declare function renderSelfLearningToolCallDetails(options: RenderSelfLearningToolCallDetailsOptions): ReactElement; export {};