Revalidate Docs / Revalidate Docs (push) Failing after 2s
E2E CI / Check Duplicate Run (push) Failing after 5s
Test CI / Check Duplicate Run (push) Failing after 6s
E2E CI / Test Web App (push) Has been skipped
Test CI / Test Packages (push) Has been skipped
Test CI / Test App (shard 1/3) (push) Has been skipped
Test CI / Test App (shard 2/3) (push) Has been skipped
Test CI / Test App (shard 3/3) (push) Has been skipped
Test CI / Test Desktop App (push) Has been skipped
🔄 Branch Synchronization / sync-branches (push) Failing after 11s
Test CI / Test Database (push) Has been skipped
Test CI / Merge and Upload App Coverage (push) Has been skipped
Database Schema Visualization CI / build (push) Failing after 4m14s
@lobechat/prompts
This package contains prompt chains and templates for the LobeHub application.
Features
- Prompt Chains: Reusable prompt templates for various AI tasks
- Multi-language Support: Prompts for multiple languages
- Type Safety: Full TypeScript support with proper type definitions
Available Prompt Chains
chainSummaryTitle- Generate conversation titleschainLangDetect- Detect language of input textchainTranslate- Translate content between languageschainPickEmoji- Select appropriate emojis for contentchainAnswerWithContext- Answer questions using knowledge base contextchainAbstractChunkText- Summarize text chunks
Testing
Prompt evaluation tests are located in devtools/agent-evals/scenarios/prompt-chain/ (cloud repo) and run via the agent-evals CLI.
# Run from cloud repo root
bun run agent-evals run prompt-chain/translate
bun run agent-evals run prompt-chain/emoji-picker
bun run agent-evals list # See all available scenarios
Development
# Run unit tests
pnpm test
Architecture
src/
├── chains/ # Prompt chain implementations
├── prompts/ # Prompt templates and utilities
└── index.ts # Main exports