| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import json
- from src.models.field_config import FieldConfig,get_field_descriptions
- from src.models.ai_execution_record import (
- Product, MarketingContentGeneration, AICompetitorAnalyzeMainKeywords,
- AICompetitorAnalyzeMainKeywordsResult,
- SearchAmazoneKeyResult,MarketingInfo,
- )
- import asyncio
- import aiofiles
- import os
- import sys
- {
- "main_keys": [
- {
- "asin": "商品(竞品)编号",
- "main_key": "主要关键词",
- "monthly_searches": "月搜索量",
- "reason": "选择该主关键词原因",
- }
- ],
- "supplement": "补充说明,非必填。如果你有额外的信息或建议,可以在这里添加。",
- "tail_keys": [
- {
- "tail_key": "长尾关键词",
- "monthly_searches": "月搜索量",
- "reason": "选择该长尾关键词原因"
- }
- ]
- }
- {
- "id": "MongoDB document ObjectID",
- "revision_id": "",
- "product": "",
- "prompting": {
- "name": "名称",
- "introduce": "介绍",
- "template": "llamaindex 提示模板",
- "keywords": "llamaindex 模板中的变量"
- },
- "input_data": "完整的输入数据",
- "output_data": "原始的AI输出结果",
- "executor_config": "",
- "helpful_level": "",
- "created_at": "",
- "task_type": "",
- "result": {
- "title": "",
- "st_search": "",
- "selling_point": [
- ""
- ],
- "product_introduction": ""
- }
- }
- async def task():
- res = get_field_descriptions(AICompetitorAnalyzeMainKeywordsResult)
- print(json.dumps(res, indent=4,ensure_ascii=False))
- res = get_field_descriptions(MarketingContentGeneration)
- print(json.dumps(res, indent=4,ensure_ascii=False))
- def main():
- asyncio.run(task())
- if __name__ == "__main__":
- main()
|