# world_snapshot create_snapshot.dspy # 创建世界快照:聚合 world/scene/entity 当前状态写入 snapshot_json try: result = await create_snapshot(params_kw) return result except Exception as e: debug(f'create_snapshot.dspy error: {format_exc()}') return {'code': 'INTERNAL_ERROR', 'message': str(e), 'field': '', 'detail': ''}