Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuaYaoAI/FinGenius
/ functions
Functions
390 in github.com/HuaYaoAI/FinGenius
⨍
Functions
390
◇
Types & classes
93
↳
Endpoints
1
↓ 1 callers
Function
get_broadcast_message
生成广播消息,通知所有智能体某智能体的行动 Args: sender_name: 发送消息的智能体名称 content: 消息内容 action_type: 行动类型 Returns: 格式化的广播消息
src/prompt/battle.py:217
↓ 1 callers
Method
get_cached_data
获取缓存数据
src/tool/create_html.py:67
↓ 1 callers
Function
get_cash_flow
获取现金流量表
src/tool/financial_deep_search/risk_control_data.py:198
↓ 1 callers
Function
get_eastmoney_announcement_detail
获取东方财富公告详情
src/tool/financial_deep_search/risk_control_data.py:82
↓ 1 callers
Function
get_eastmoney_announcements
获取东方财富公告列表
src/tool/financial_deep_search/risk_control_data.py:40
↓ 1 callers
Function
get_financial_reports
获取财务报表数据(资产负债表、利润表、现金流量表)
src/tool/financial_deep_search/risk_control_data.py:215
↓ 1 callers
Function
get_income_statement
获取利润表
src/tool/financial_deep_search/risk_control_data.py:181
↓ 1 callers
Function
get_project_root
Get the project root directory
src/config.py:16
↓ 1 callers
Method
handle_speak
Handle agent speech during debate.
src/environment/battle.py:235
↓ 1 callers
Method
handle_stuck_state
Handle stuck state by adding a prompt to change strategy
src/agent/base.py:161
↓ 1 callers
Method
handle_vote
Handle agent voting.
src/environment/battle.py:258
↓ 1 callers
Method
initialize
Initialize the environment. Override in subclasses.
src/environment/base.py:29
↓ 1 callers
Method
is_agent_active
Check if agent is active and can participate
src/environment/battle.py:45
↓ 1 callers
Function
is_reasoning_model
检查模型是否为推理模型
src/llm.py:37
↓ 1 callers
Method
is_stuck
Check if the agent is stuck in a loop by detecting duplicate content
src/agent/base.py:168
↓ 1 callers
Function
list_recent_reports
列出最近的报告
src/utils/cleanup_reports.py:84
↓ 1 callers
Function
load_index_map
()
src/tool/financial_deep_search/index_capital.py:31
↓ 1 callers
Function
main
Main entry point for the application.
main.py:410
↓ 1 callers
Function
main
主函数
src/utils/cleanup_reports.py:165
↓ 1 callers
Function
main
命令行调用入口函数
src/tool/financial_deep_search/stock_capital.py:281
↓ 1 callers
Function
main
命令行调用入口函数
src/tool/financial_deep_search/get_section_data.py:138
↓ 1 callers
Function
main
命令行调用入口函数
src/tool/financial_deep_search/index_capital.py:248
↓ 1 callers
Function
parse_args
Parse command line arguments.
src/mcp/server.py:228
↓ 1 callers
Function
parse_jsonp
解析JSONP响应为JSON数据
src/tool/financial_deep_search/stock_capital.py:29
↓ 1 callers
Function
parse_jsonp
(jsonp_str)
src/tool/financial_deep_search/get_section_data.py:24
↓ 1 callers
Function
parse_jsonp
解析JSONP响应为JSON数据
src/tool/financial_deep_search/index_capital.py:68
↓ 1 callers
Method
perform_search
Perform a web search and return a list of search items. Args: query (str): The search query to submit to the search engi
src/tool/search/base.py:25
↓ 1 callers
Method
play_audio
Play the audio file using platform-specific methods
src/tool/tts_tool.py:295
↓ 1 callers
Function
process_flow_data
处理资金流向数据 参数: data: API返回的原始数据 index_code: 指数代码 返回: dict: 处理后的资金流向数据
src/tool/financial_deep_search/index_capital.py:148
↓ 1 callers
Function
process_stock_list_data
处理股票列表资金流向数据 参数: stock_list: API返回的原始股票列表数据 total_count: 总记录数 返回: dict: 处理后的资金流向数据
src/tool/financial_deep_search/stock_capital.py:144
↓ 1 callers
Method
register_tool
Register a tool with parameter validation and documentation.
src/mcp/server.py:44
↓ 1 callers
Method
remove_cache
删除缓存
src/tool/create_html.py:122
↓ 1 callers
Function
run_agent
()
src/agent/report.py:31
↓ 1 callers
Function
run_cleanup_daemon
运行清理守护进程
src/utils/cleanup_reports.py:146
↓ 1 callers
Function
run_tool
()
src/tool/hot_money.py:194
↓ 1 callers
Function
schedule_cleanup
安排定期清理
src/utils/cleanup_reports.py:140
↓ 1 callers
Method
set_cached_data
设置缓存数据
src/tool/create_html.py:102
↓ 1 callers
Method
show_agent_analysis_result
Display individual agent analysis results
src/console.py:374
↓ 1 callers
Method
show_agent_completed
Display when agent completes analysis
src/console.py:307
↓ 1 callers
Method
show_agent_starting
Display which agent is starting analysis
src/console.py:291
↓ 1 callers
Method
show_agent_thought
Display agent's thinking process
src/console.py:129
↓ 1 callers
Method
show_completion
Show completion message
src/console.py:360
↓ 1 callers
Method
show_research_summary
Display comprehensive research summary from all agents
src/console.py:399
↓ 1 callers
Function
show_storage_stats
显示存储统计信息
src/utils/cleanup_reports.py:59
↓ 1 callers
Method
show_waiting_next_agent
Display waiting message between agents
src/console.py:323
↓ 1 callers
Function
simplify_sector_item
(item)
src/tool/financial_deep_search/get_section_data.py:51
↓ 1 callers
Method
state_context
Context manager for safe agent state transitions. Args: new_state: The state to transition to during the context. Yields
src/agent/base.py:58
↓ 1 callers
Method
text_to_speech
Convert text to speech using volcengine TTS API. Args: text: Text to convert to speech encoding: Audio encod
src/tool/tts_tool.py:89
↓ 1 callers
Method
think
Process current state and decide next action
src/agent/react.py:26
↓ 1 callers
Method
to_params
(self)
src/tool/tool_collection.py:22
↓ 1 callers
Method
user_message
Create a user message
src/schema.py:106
Method
__add__
支持 Message + list 或 Message + Message 的操作
src/schema.py:64
Method
__add__
(self, other: "ToolResult")
src/tool/base.py:53
Method
__aenter__
(self)
src/ollama_client.py:41
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
src/ollama_client.py:44
Method
__bool__
(self)
src/tool/base.py:50
Method
__call__
Execute the tool with given parameters.
src/tool/base.py:19
Method
__init__
(self)
main.py:26
Method
__init__
(self)
src/config.py:181
Method
__init__
(self, tokenizer)
src/llm.py:72
Method
__init__
(self, message)
src/exceptions.py:4
Method
__init__
(self)
src/console.py:23
Method
__init__
(self, base_url: str, api_key: str)
src/ollama_client.py:24
Method
__init__
(self, client: OllamaAsyncOpenAI)
src/ollama_client.py:55
Method
__init__
(self, client: OllamaAsyncOpenAI)
src/ollama_client.py:67
Method
__init__
(self, base_dir: str = "report")
src/utils/report_manager.py:21
Method
__init__
(self, name: str = "RiskControlServer")
src/mcp/risk_control_server.py:7
Method
__init__
(self, name: str = "ChipAnalysisServer")
src/mcp/chip_analysis_server.py:7
Method
__init__
(self, name: str = "BattleServer")
src/mcp/battle_server.py:6
Method
__init__
(self, name: str = "BigDealAnalysisServer")
src/mcp/big_deal_analysis_server.py:7
Method
__init__
(self, name: str = "TechnicalAnalysisServer")
src/mcp/technical_analysis_server.py:7
Method
__init__
(self, name: str = "FinGenius")
src/mcp/server.py:29
Method
__init__
(self, name: str = "HotMoneyServer")
src/mcp/hot_money_srver.py:13
Method
__init__
(self, name: str = "SentimentServer")
src/mcp/sentiment_server.py:8
Method
__init__
(self)
src/tool/mcp_client.py:47
Method
__init__
(self, *tools: BaseTool)
src/tool/tool_collection.py:15
Method
__init__
(self, cache_dir: str = "cache")
src/tool/create_html.py:40
Method
__init__
(self, **kwargs)
src/tool/tts_tool.py:207
Method
__init__
Initialize with a specific response type.
src/tool/create_chat_completion.py:26
Method
__init__
Initialize the BingSearch tool with a requests session.
src/tool/search/bing_search.py:41
Method
__iter__
(self)
src/tool/tool_collection.py:19
Method
__new__
(cls)
src/config.py:174
Method
__new__
( cls, config_name: str = "default", llm_config: Optional[LLMSettings] = None )
src/llm.py:199
Method
__radd__
支持 list + Message 的操作
src/schema.py:75
Method
__str__
(self)
src/tool/base.py:70
Method
__str__
String representation of a search result.
src/tool/web_search.py:38
Method
__str__
String representation of a search result item.
src/tool/search/base.py:15
Method
_get_alternative_data_sources
获取替代数据源
src/tool/chip_analysis.py:243
Method
_get_market_data
Get market data including hot sectors and index capital flow. Supports maximum retry mechanism.
src/tool/sentiment.py:80
Method
_get_tech_data
Get technical data including real-time quotes, K-line data and capital flow. Supports maximum retry mechanism.
src/tool/technical_analysis.py:115
Method
_handle_special_tool
Handle special tool execution and state changes
src/agent/mcp.py:266
Method
_initialize_standard_tools
(self)
src/mcp/risk_control_server.py:10
Method
_initialize_standard_tools
(self)
src/mcp/chip_analysis_server.py:10
Method
_initialize_standard_tools
(self)
src/mcp/battle_server.py:9
Method
_initialize_standard_tools
(self)
src/mcp/big_deal_analysis_server.py:10
Method
_initialize_standard_tools
(self)
src/mcp/technical_analysis_server.py:10
Method
_initialize_standard_tools
(self)
src/mcp/hot_money_srver.py:16
Method
_initialize_standard_tools
(self)
src/mcp/sentiment_server.py:11
Method
_run_agent_steps
Run steps for all active agents.
src/environment/battle.py:294
Method
_safe_fetch
Fetch data with retries; return None on ultimate failure instead of raising.
src/tool/big_deal_analysis.py:81
← previous
next →
201–300 of 390, ranked by callers