Install
openclaw skills install @xikal/fund-advisor-agent场外公募基金配置顾问 Agent Skill,具备10年实战投资经验的资深理财经理角色,提供基金数据查询、组合配置、风险评估、市场监控、投资教育等一站式专业理财服务。支持 web-search、document-generation、knowledge、feishu-message 四大技能集成。
openclaw skills install @xikal/fund-advisor-agent具备10年实战投资经验的资深理财经理角色,专注基金资产配置与风险管理。
基于 LangChain/LangGraph 框架构建的智能投顾 Agent,通过 87 个专业工具函数提供从基金筛选、组合配置、风险评估、市场监控到投资教育的全流程专业服务。
本 Skill 深度集成了以下四大核心技能:
| 技能 | 功能描述 | 集成的工具数量 |
|---|---|---|
| web-search | 实时获取基金净值、业绩、基金经理、市场估值等数据 | 10个工具 |
| document-generation | 生成 PDF/DOCX/Excel 专业报告 | 4个工具 |
| knowledge | 基金投资知识库语义搜索与管理 | 4个工具 |
| feishu-message | 飞书消息推送(投资提醒、市场预警等) | 6个工具 |
from src.agents.agent import build_agent
# 构建 Agent
agent = build_agent()
# 运行 Agent
result = agent.invoke({
"messages": [
("user", "我想要配置一个稳健型的基金组合,可用资金20万,投资期3年")
]
})
print(result)
用户:帮我查询一下易方达蓝筹精选(005827)的最新净值和业绩
Agent:使用 query_fund_data 工具查询,返回最新净值 1.7699元,近一年涨幅等数据
用户:中低风险,3年投资期,20万资金,请给我一个配置方案
Agent:综合分析后给出配置建议(债券70% + 股票30%),并详细说明选基逻辑
用户:我想开始定投沪深300指数,每月投2000元,请帮我计算收益
Agent:使用 calculate_sip_returns 工具计算,输出详细的收益测算和策略建议
new_context() 获取请求上下文query_fund_data - 查询基金净值、业绩query_fund_performance - 查询历史业绩query_fund_manager - 查询基金经理信息query_market_valuation - 查询市场估值generate_portfolio_pdf_report - 生成 PDF 报告generate_allocation_excel - 生成 Excel 配置表search_fund_knowledge - 搜索投资知识get_investment_tips - 获取投资建议setup_feishu_notification - 配置飞书通知send_market_alert_notification - 发送市场预警# 核心依赖
coze-coding-dev-sdk>=0.5.11
langchain>=1.0
langgraph>=1.0
# 可选依赖
requests # 用于 HTTP 请求
# 模型配置(通过 coze_workload_identity 获取)
COZE_WORKLOAD_IDENTITY_API_KEY
COZE_INTEGRATION_MODEL_BASE_URL
# 飞书 Webhook(通过 coze_workload_identity 获取)
FEISHU_WEBHOOK_URL
配置文件位于 config/agent_llm_config.json:
{
"config": {
"model": "doubao-seed-2-0-pro-260215",
"temperature": 0.7,
"top_p": 0.9,
"max_completion_tokens": 10000,
"timeout": 600,
"thinking": "disabled"
},
"sp": "# System Prompt...",
"tools": ["tool1", "tool2", ...]
}
MemorySaver 存储对话历史/tmp 目录/tmp/
├── user_profiles/ # 用户画像数据
├── sip_plans/ # 定投计划
├── market_alerts/ # 市场预警
├── fund_alerts/ # 基金异动
├── notifications/ # 消息通知配置
└── investment_diary/ # 投资日记
┌─────────────────────────────────────────┐
│ Fund Advisor Agent │
├─────────────────────────────────────────┤
│ ┌─────────────────────────────────┐ │
│ │ System Prompt (SP) │ │
│ │ 10年实战投资经验理财经理角色 │ │
│ └─────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────┐ │
│ │ LLM (doubao-seed) │ │
│ │ 决策引擎 + 工具调用编排 │ │
│ └─────────────────────────────────┘ │
│ │ │
│ ┌──────────┼──────────┐ │
│ ▼ ▼ ▼ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ web- │ │document- │ │knowledge │ │
│ │ search │ │generation│ │ │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │ │ │ │
│ └──────────┴──────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────┐ │
│ │ 87个专业工具函数 │ │
│ │ 基金查询 / 组合管理 / 风险评估 │ │
│ │ 市场监控 / 报告生成 / 消息推送 │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────────┘