快速入门
试试看:Jev
打开Jev并登录。
将任意文本粘贴为状态。
代码块
JavaScript
Hi, I've been trying to connect my Stripe account for 3 days and the integration keeps failing. I'm losing sales. Please help ASAP.
添加一个问题。试试一个新问题:"Does this message express urgency?"
代码块
JavaScript
{
"urgency": {
"type": "noul",
"instructions": "Does this message express urgency?"
}
}
添加更多问题。在一次调用中混合使用Noul、选择题和评分,并一次性查看所有结果。
将其命名为:API
从仪表板获取您的API密钥
向API端点发起POST请求
请查阅API 参考文档以获取所有详细信息。
代码块
JavaScript
POST https://api.typesafe.ai/v1/systemone
Authorization: Bearer <API_KEY>
Content-Type: application/json
示例 cURL 命令
代码块
Bash
curl -X POST https://api.typesafe.ai/v1/systemone \
-H "Authorization: Bearer $TYPESAFE_API_KEY" \
-H "Content-Type: application/json" \
-d @- <<'EOF'
{
"state": "Hi, I've been trying to connect my Stripe account for 3 days and the integration keeps failing. I'm losing sales. Please help ASAP.",
"model": "jev-latest",
"questions": {
"urgency": {
"type": "noul",
"instructions": "Does this message express urgency?"
}
}
}
请求体
代码块
JSON
{
"state": "Hi, I've been trying to connect my Stripe account for 3 days and the integration keeps failing. I'm losing sales. Please help ASAP.",
"model": "jev-latest",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this",
"criteria": {
"billing": "Payment or subscription issues",
"technical": "Bugs or integration problems",
"sales": "Pricing or account questions"
}
},
响应体
代码块
JSON
编写代码:Python SDK
安装 SDK(需要 Python >= 3.10)。
使用 pip
代码块
Plain Text
pip install typesafe-sdk
使用 uv
代码块
Plain Text
uv add typesafe-sdk
使用 SDK。客户端读取TYPESAFE_API_KEY来自环境并调用jev-latest默认情况下。
代码块
Python
from typesafe_sdk import Choice, Noul, Score, TypeSafeClient
client = TypeSafeClient()
营造氛围:客服技能
安装 TypeSafe 技能使用 Claude Code 插件或npx skills add typesafe-ai/skills --skill typesafe-ai您还可以在 GitHub 上阅读 SKILL.md.
•
Claude Code
•
其他代理
•
复制到您的代理
在终端中运行以下两条命令:
代码块
Plain Text
claude plugin marketplace add typesafe-ai/skillsclaude plugin install typesafe@typesafe-ai
在构建时,请告知您的编码代理使用TypeSafe技能!
编码代理提示
代码块
Plain Text
Let's build a simple CLI that uses the TypeSafe API to evaluate a set of supplied documen