UNPKG

@botonic/react

Version:

Build Chatbots using React

25 lines (24 loc) 929 B
import { EventAction } from '@botonic/core'; import { DebugEventConfig } from '../types'; import { ChunkIdsGroupedBySourceData } from './knowledge-bases-types'; interface ToolExecuted { tool_name: string; tool_arguments: Record<string, unknown>; knowledgebase_sources_ids?: string[]; knowledgebase_chunks_ids?: string[]; } export interface AiAgentDebugEvent { action: EventAction.AiAgent; flow_node_content_id: string; user_input?: string; tools_executed: ToolExecuted[]; input_guardrails_triggered: string[]; output_guardrails_triggered: string[]; exit: boolean; error: boolean; knowledge_base_chunks_with_sources?: ChunkIdsGroupedBySourceData[]; messageId?: string; } export declare const AiAgent: (props: AiAgentDebugEvent) => import("react/jsx-runtime").JSX.Element; export declare const getAiAgentEventConfig: (data: AiAgentDebugEvent) => DebugEventConfig; export {};