UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

30 lines (29 loc) 931 B
import type { AgentBasicInformation } from '../../book-2.0/agent-source/AgentBasicInformation'; type PromptbookAgentProps = { /** * URL of the agent to connect to * * @example "http://s6.ptbk.io/benjamin-white" */ agentUrl: string; /** * Optional metadata to show before the agent is connected * Or to override the agent metadata if the agent does not provide it */ meta?: Partial<AgentBasicInformation['meta']>; /** * Callback when the window is opened or closed */ onOpenChange?: (isOpen: boolean) => void; }; /** * Renders a floating agent button that opens a chat window with the remote agent. * * @public exported from `@promptbook/components` */ export declare function PromptbookAgent(props: PromptbookAgentProps): import("react/jsx-runtime").JSX.Element; export {}; /** * TODO: !!! Load the full branding * TODO: !!! <promptbook-agent> element */