pv_run_simulation
Create and queue a parallel-variable digital resident simulation, return a pipeline ID and queue status, then query progress and feedback asynchronously.
Instructions
【重要:扣费操作,调用前必须先向用户展示本次推演的样本量(sample_size)、步进单位与步数(step_unit + observation_days)以及预估推演点数消耗,并获得用户明确确认后再调用!】创建平行变量数字居民推演流水线并立即提交排队启动(内部依次调用 POST /v1/pipelines 与 POST /v1/pipelines/{id}/launch),立即返回 pipeline_id 与排队信息,不会阻塞等待推演结束。启动后请使用 pv_get_simulation_results 查询实时进度与居民反馈结果。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"description": "<description>",
"region_code": "<region_code>",
"sample_size": "<sample_size>",
"observation_days": "<observation_days>"
},
"name": "pv_run_simulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | No | ||
| age_max | No | ||
| age_min | No | ||
| step_unit | No | 推演步进单位:DAY(天)、WEEK(周)、MONTH(月)。 | |
| price_yuan | No | 可选,商业场景价格(元);非商业社会事件请勿传此字段。 | |
| description | Yes | 完整的推演方案或事件描述。 | |
| region_code | Yes | 目标区域编码(如 110105)。 | 110105 |
| sample_size | Yes | 目标抽样数字居民数量。 | |
| income_bands | No | ||
| audience_tags | No | ||
| education_levels | No | ||
| marital_statuses | No | ||
| observation_days | Yes | 推演总步数(1~31,配合 step_unit 表示天/周/月)。 | |
| observation_goals | No | 可选,最多 8 条中文观测目标。 | |
| scenario_category | No | 可选,由 pv_clarify_scenario 返回的场景类型编码。 | |
| auto_confirm_insufficient_population | No | 若命中人群少于 sample_size,是否自动按实际人数确认并继续启动(默认 false)。 |