feat: multimodal image clients, workspaces, Tushare skill, test fixes

- Replace monolithic image_message_client with HTTP/OCR/legacy modules; tighten OpenAI transport + tool schemas for multimodal downgrade to OCR specialist path.
- Add image/stock workspace prompts (META/SOUL/ROLE_SYSTEM); register experts; tweak specialist agent/direct loop/query_image_attachment.
- Add bundled runtime/skills/tushare-finance (references, api_client, SKILL metadata).
- Document OCR-related env vars; admin chat tweaks; README; weixin_install Ensure-OfficialPluginRuntimeDeps helper.
- Tests: multimodal downgrade + OCR coverage, strict tool pairing in attachment replay guard, workspace contract skips _internal/_system dirs, router/trace/prompt guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-05-10 04:41:42 +08:00
parent 6307ade480
commit d1bcc4debe
266 changed files with 57024 additions and 839 deletions

View file

@ -0,0 +1,131 @@
# 游资交易每日明细
**文档ID**: 312
**原始链接**: https://tushare.pro/document/2?doc_id=312
---
## 游资每日明细
接口:hm_detail描述:获取每日游资交易明细,数据开始于2022年8。游资分类名录,请点击游资名录限量:单次最多提取2000条记录,可循环调取,总量不限制积分:用户积10000积分可调取使用,积分获取办法请参阅积分获取办法
注:数据为当日部分数据,此处只未作为示例效果。
输入参数
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody><tr>
<td>trade_date</td>
<td>str</td>
<td>N</td>
<td>交易日期(YYYYMMDD)</td>
</tr>
<tr>
<td>ts_code</td>
<td>str</td>
<td>N</td>
<td>股票代码</td>
</tr>
<tr>
<td>hm_name</td>
<td>str</td>
<td>N</td>
<td>游资名称</td>
</tr>
<tr>
<td>start_date</td>
<td>str</td>
<td>N</td>
<td>开始日期(YYYYMMDD)</td>
</tr>
<tr>
<td>end_date</td>
<td>str</td>
<td>N</td>
<td>结束日期(YYYYMMDD)</td>
</tr>
</tbody></table>
输出参数
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>默认显示</th>
<th>描述</th>
</tr>
</thead>
<tbody><tr>
<td>trade_date</td>
<td>str</td>
<td>Y</td>
<td>交易日期</td>
</tr>
<tr>
<td>ts_code</td>
<td>str</td>
<td>Y</td>
<td>股票代码</td>
</tr>
<tr>
<td>ts_name</td>
<td>str</td>
<td>Y</td>
<td>股票名称</td>
</tr>
<tr>
<td>buy_amount</td>
<td>float</td>
<td>Y</td>
<td>买入金额(元)</td>
</tr>
<tr>
<td>sell_amount</td>
<td>float</td>
<td>Y</td>
<td>卖出金额(元)</td>
</tr>
<tr>
<td>net_amount</td>
<td>float</td>
<td>Y</td>
<td>净买卖(元)</td>
</tr>
<tr>
<td>hm_name</td>
<td>str</td>
<td>Y</td>
<td>游资名称</td>
</tr>
<tr>
<td>hm_orgs</td>
<td>str</td>
<td>Y</td>
<td>关联机构(一般为营业部或机构专用)</td>
</tr>
<tr>
<td>tag</td>
<td>str</td>
<td>N</td>
<td>标签</td>
</tr>
</tbody></table>
接口示例
```
pro = ts.pro_api()
#获取单日全部明细
df = pro.hm_detail(trade_date='20230815')
```