Showing
2 changed files
with
3 additions
and
1 deletions
| ... | @@ -13,7 +13,7 @@ API_CONFIG = { | ... | @@ -13,7 +13,7 @@ API_CONFIG = { |
| 13 | "headers": { | 13 | "headers": { |
| 14 | "accept": "*/*", | 14 | "accept": "*/*", |
| 15 | "Content-Type": "application/json", | 15 | "Content-Type": "application/json", |
| 16 | - "Authorization": os.getenv("API_AUTHORIZATION", "Bearer 2.4ffc503a8f6d4f939316b7edbdf85ab6"), | 16 | + "Authorization": os.getenv("API_AUTHORIZATION", "Bearer 2.787c2f8b84f1462a83abba60fbb5553d"), |
| 17 | "Ver": os.getenv("API_VER", "033BD94B1168D7E4F0D644C3C95E35BF.D73E33B659AD1D6B7D181D1DF8D05760"), | 17 | "Ver": os.getenv("API_VER", "033BD94B1168D7E4F0D644C3C95E35BF.D73E33B659AD1D6B7D181D1DF8D05760"), |
| 18 | "Referer": os.getenv("API_REFERER", "http://192.168.1.251/") | 18 | "Referer": os.getenv("API_REFERER", "http://192.168.1.251/") |
| 19 | } | 19 | } | ... | ... |
| ... | @@ -181,6 +181,7 @@ def _create_system_prompt(state: Dict[str, Any], config: RunnableConfig) -> List | ... | @@ -181,6 +181,7 @@ def _create_system_prompt(state: Dict[str, Any], config: RunnableConfig) -> List |
| 181 | ## 你的主要职责: | 181 | ## 你的主要职责: |
| 182 | 1. **运单查询**:根据用户需求查询运单列表,支持按状态、时间等条件筛选,结果以JSON形式展示,AI不用对返回数据JSON进行加工 | 182 | 1. **运单查询**:根据用户需求查询运单列表,支持按状态、时间等条件筛选,结果以JSON形式展示,AI不用对返回数据JSON进行加工 |
| 183 | 2. **运单创建**:协助用户创建D类运单,确保信息完整准确 | 183 | 2. **运单创建**:协助用户创建D类运单,确保信息完整准确 |
| 184 | + - **重要说明**:当用户输入"创建运单"或"申报"时,都理解为"创建运单"操作,应调用 create_waybill_d 工具 | ||
| 184 | 3. **业务咨询**:解答用户关于出口物流流程、运单状态、操作规范等问题 | 185 | 3. **业务咨询**:解答用户关于出口物流流程、运单状态、操作规范等问题 |
| 185 | 4. **您当前访问工具Authorization的传参为 Authorization= {token} | 186 | 4. **您当前访问工具Authorization的传参为 Authorization= {token} |
| 186 | 187 | ||
| ... | @@ -197,6 +198,7 @@ def _create_system_prompt(state: Dict[str, Any], config: RunnableConfig) -> List | ... | @@ -197,6 +198,7 @@ def _create_system_prompt(state: Dict[str, Any], config: RunnableConfig) -> List |
| 197 | ## 可用工具: | 198 | ## 可用工具: |
| 198 | - query_waybill_list: 查询运单列表,支持按状态筛选,需提供Authorization,结果以JSON形式展示,AI不用对返回数据JSON进行加工 | 199 | - query_waybill_list: 查询运单列表,支持按状态筛选,需提供Authorization,结果以JSON形式展示,AI不用对返回数据JSON进行加工 |
| 199 | - create_waybill_d: 根据运单号创建D类运单,需要提供参数(运单号、Authorization) | 200 | - create_waybill_d: 根据运单号创建D类运单,需要提供参数(运单号、Authorization) |
| 201 | + - **注意**:当用户说"创建运单"或"申报"时,都应调用此工具 | ||
| 200 | - upload_clearance_file: 上传清关PDF文件,需要 code、slip_id、pdf_path、Authorization,上传时文件路径不用确认,路径肯定是完整的,文件肯定是存在的,不用确认文件索引,工具会自动设置索引为0,请直接调用工具接口 | 202 | - upload_clearance_file: 上传清关PDF文件,需要 code、slip_id、pdf_path、Authorization,上传时文件路径不用确认,路径肯定是完整的,文件肯定是存在的,不用确认文件索引,工具会自动设置索引为0,请直接调用工具接口 |
| 201 | - push_waybill_for_ocr: 根据运单ID推送OCR进行识别,需要提供运单ID(waybill_id、Authorization)参数 | 203 | - push_waybill_for_ocr: 根据运单ID推送OCR进行识别,需要提供运单ID(waybill_id、Authorization)参数 |
| 202 | 204 | ... | ... |
-
Please register or login to post a comment