@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
36 lines (35 loc) • 1.07 kB
TypeScript
import type { AgentBasicInformation } from '../../../book-2.0/agent-source/AgentBasicInformation';
import type { string_css_class } from '../../../types/string_markdown';
/**
* Props of `AvatarChip`
*
* @public exported from `@promptbook/components`
*/
export type AvatarChipProps = {
/**
* Avatar to be shown
*/
readonly avatarBasicInformation: Omit<AgentBasicInformation, 'parameters'>;
/**
* Whether this chip is a template avatar
*/
readonly isTemplate: boolean;
/**
* Optional CSS class name which will be added to root <div> element
*/
readonly className?: string_css_class;
/**
* Called when chip is clicked
*/
readonly onSelect?: (avatar: Omit<AgentBasicInformation, 'parameters'>) => void;
/**
* Whether this chip is selected
*/
readonly isSelected?: boolean;
};
/**
* Shows a chip with avatar's avatar and name
*
* @public exported from `@promptbook/components`
*/
export declare function AvatarChip(props: AvatarChipProps): import("react/jsx-runtime").JSX.Element;