ai-chatbot/lib/ai/canvas-agent-runtime/project-operation-production-contracts.json

53 lines
2.0 KiB
JSON

{
"smart-edit.get": {
"source": "app/api/canvas/smart-edit/capabilities/route.ts",
"methods": [
"GET"
],
"schemas": {},
"interfaces": {},
"queryKeys": []
},
"prompt-tools.post": {
"source": "app/api/canvas/prompt-tools/route.ts",
"methods": [
"POST"
],
"schemas": {
"promptToolSchema": "z.object({\n mode: z.enum([\"optimize\", \"translate\"]),\n prompt: z.string().trim().min(1, \"请先输入提示词\").max(12000, \"提示词不能超过 12000 字\"),\n model: z.string().trim().max(200).optional(),\n})"
},
"interfaces": {},
"queryKeys": []
},
"agent-detail-batches.get": {
"source": "app/api/agents/detail-replacement/batches/route.ts",
"methods": [
"GET",
"POST"
],
"schemas": {},
"interfaces": {
"DetailReplacementBatchRequest": "export type DetailReplacementBatchRequest = {\n taskKind: \"agent-detail-replacement-batch\";\n projectId: string;\n chatId: string;\n submissionKey?: string;\n model: string;\n prompt: string;\n userPrompt: string;\n imageSize: string;\n replacementStrategy: \"product_only\" | \"scene_replace\";\n productImageUrls: string[];\n modelImageUrl: string | null;\n references: DetailReplacementBatchReference[];\n};"
},
"queryKeys": [
"projectId",
"taskId"
]
},
"agent-detail-batches.post": {
"source": "app/api/agents/detail-replacement/batches/route.ts",
"methods": [
"GET",
"POST"
],
"schemas": {},
"interfaces": {
"DetailReplacementBatchRequest": "export type DetailReplacementBatchRequest = {\n taskKind: \"agent-detail-replacement-batch\";\n projectId: string;\n chatId: string;\n submissionKey?: string;\n model: string;\n prompt: string;\n userPrompt: string;\n imageSize: string;\n replacementStrategy: \"product_only\" | \"scene_replace\";\n productImageUrls: string[];\n modelImageUrl: string | null;\n references: DetailReplacementBatchReference[];\n};"
},
"queryKeys": [
"projectId",
"taskId"
]
}
}