mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
99023811d8
* 🔥 remove local system listFiles exposure * 📝 clarify local system shell result wording * 📝 refine local system shell manifest copy * 📝 simplify local system shell prompt semantics * 🐛 fix command wait-window result wording * 📝 limit transient device retry guidance * ✨ show command output duration * 🏷️ narrow command duration result type * 🐛 propagate operation id for device tool calls * 🐛 update project skill discovery hint * 📝 clarify project skill file access * 📝 align project skill discovery comment
@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