# @cozeloop/prompt-components

Prompt common components for cozeloop

## Overview

This package is part of the Coze Loop monorepo and provides ui component functionality. It includes editor, prompt.

## Getting Started

### Installation

Add this package to your `package.json`:

```json
{
  "dependencies": {
    "@cozeloop/prompt-components": "workspace:*"
  }
}
```

Then run:

```bash
rush update
```

### Usage

```typescript
import { /* exported functions/components */ } from '@cozeloop/prompt-components';

// Example usage
// TODO: Add specific usage examples
```

## Features

- Editor
- Prompt

## API Reference

### Exports

- `PromptBasicEditor,
  PromptBasicEditorProps,
  PromptBasicEditorRef,`
- `PromptDiffEditor`
- `PromptEditor,
  PromptEditorProps,
  PromptMessage,`
- `PopoverModelConfigEditor`
- `PopoverModelConfigEditorQuery`
- `BasicModelConfigEditor`
- `ModelSelectWithObject`
- `DevLayout`
- `PromptCreate`
- `getPlaceholderErrorContent`

*And more...*

For detailed API documentation, please refer to the TypeScript definitions.

## Development

This package is built with:

- TypeScript
- React
- Vitest for testing
- ESLint for code quality

## Contributing

This package is part of the Coze Loop monorepo. Please follow the monorepo contribution guidelines.

## License

Apache-2.0
