| Class | Description |
|---|---|
| PromptHubExample |
Prompt Hub 基础示例
展示如何: - 获取 prompt - 格式化 prompt(包含普通变量和 placeholder 变量) - 与 LLM 调用的集成
使用前请先设置以下环境变量: - COZELOOP_WORKSPACE_ID: 你的工作空间 ID - COZELOOP_API_TOKEN: 你的访问令牌
注意:需要在平台上创建一个 Prompt(Prompt Key 设置为 'prompt_hub_demo'), 并在模板中添加以下消息,然后提交版本: - System: You are
a helpful bot, the conversation topic is {{var1}}. - Placeholder: placeholder1 - User: My
question is {{var2}} - Placeholder: placeholder2
|
Copyright © 2026. All rights reserved.