跳转到文档
打开控制台
本页内容

Assistant

Assistant 和 Film Maker 随工作进度计费,积分不足时暂停。引导模式会等待创意审核。

启动运行#

引导模式会暂停以在 Tong 中进行人工审核,自动模式会继续运行。两者都随工作进度计费,积分不足时暂停。

curl -X POST 'https://platform.tongai.io/v1/assistant/runs' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \  -d '{  "message": "Create a short film about a quiet city",  "mode": "guided",  "attachments": []}'
配置
curl --version

跟踪运行#

HTTP
GET /v1/runs/{run_id}GET /v1/runs/{run_id}/events?after=0POST /v1/runs/{run_id}/pausePOST /v1/runs/{run_id}/resume

Assistant 和 Film Maker 随工作进度计费,积分不足时暂停。引导模式会等待创意审核。

在对话中继续#

curl -X POST 'https://platform.tongai.io/v1/conversations' \  -H "Authorization: Bearer $TONG_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \  -d '{  "entrypoint": "assistant",  "mode": "guided"}'
配置
curl --version
HTTP
POST /v1/conversations/{conversation_id}/messagesIdempotency-Key: {new_intent_uuid}
{"text":"Continue with the next scene","attachment_asset_ids":[]}