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
Method
_should_finish_execution
Determine if tool execution should finish the agent
src/agent/mcp.py:278
Method
_to_float
(series)
src/tool/big_deal_analysis.py:93
Method
_with_retry
Simple retry wrapper for unstable akshare endpoints.
src/tool/big_deal_analysis.py:70
Method
act
Execute tool calls and handle their results
src/agent/toolcall.py:148
Method
add_messages
Add multiple messages to memory
src/schema.py:178
Method
all_agents_decided
Check if all agents have made their final decision (voted at least once or terminated)
src/environment/battle.py:159
Method
analyze
执行舆情分析
src/agent/sentiment.py:61
Method
ask_with_images
Send a prompt with images to the LLM and get the response. Args: messages: List of conversation messages ima
src/llm.py:483
Method
basic_info
Get the basic stock information from the output.
src/tool/stock_info_request.py:23
Method
browser_config
(self)
src/config.py:300
Method
cleanup
Clean up resources when done
src/environment/base.py:52
Method
cleanup
Clean up all agent resources.
src/environment/research.py:148
Method
cleanup
Clean up battle resources
src/environment/battle.py:277
Method
cleanup_expired_cache
清理过期缓存
src/tool/create_html.py:131
Function
cleanup_reports
清理过期报告
src/utils/report_manager.py:308
Method
close
关闭HTTP客户端
src/ollama_client.py:47
Method
combine_fields
( field: Optional[str], other_field: Optional[str], concatenate: bool = True )
src/tool/base.py:54
Method
completions
返回completions接口
src/ollama_client.py:59
Method
count_message_tokens
Calculate the total number of tokens in a message list
src/llm.py:169
Method
create
创建chat completion请求 - 转换为Ollama原生/api/generate调用
src/ollama_client.py:70
Method
create_environment
Create and initialize an environment of the specified type Args: environment_type: The type of environment to create
src/environment/base.py:68
Method
current_trading_day
Get the current trading day from the output.
src/tool/stock_info_request.py:18
Function
decorator
(func)
src/tool/create_html.py:164
Method
enhanced_broadcast
(sender_id: str, content: str, event_type: str)
main.py:178
Method
execute
Execute the tool by making a remote call to the MCP server.
src/tool/mcp_client.py:20
Method
execute
Fetch big deal fund flow data and return structured result.
src/tool/big_deal_analysis.py:54
Method
execute
( self, *, name: str, tool_input: Dict[str, Any] = None )
src/tool/tool_collection.py:25
Method
execute
Execute HTML generation operation with enhanced error handling and validation Args: request: Detailed description of the HTML pag
src/tool/create_html.py:662
Method
execute
执行筹码分析
src/tool/chip_analysis.py:41
Method
execute
Finish the current execution
src/tool/terminate.py:23
Method
execute
Execute the battle action with speaking and/or voting
src/tool/battle.py:32
Method
execute
Execute the chat completion with type conversion. Args: required: List of required field names or None **kwargs: Resp
src/tool/create_chat_completion.py:130
Method
execute_all
Execute all tools in the collection sequentially.
src/tool/tool_collection.py:38
Function
get_all_stock_codes
从CSV文件获取所有股票代码和名称
src/tool/financial_deep_search/risk_control_data.py:332
Function
get_company_name_for_stock
从CSV文件或缓存中获取股票对应的公司名称
src/tool/financial_deep_search/risk_control_data.py:276
Method
get_latest_report
获取最新的报告
src/utils/report_manager.py:269
Method
get_recent_messages
Get n most recent messages
src/schema.py:189
Function
get_report_context
根据股票分析报告生成上下文信息 Args: summary: 报告摘要 pros: 股票的优势列表 cons: 股票的劣势列表 Returns: 格式化的报告上下文
src/prompt/battle.py:241
Function
get_risk_control_data
获取单只股票的风控数据(财务数据和法务公告),集成版,支持最大重试机制。 Args: stock_code (str): 股票代码,如"600519" max_count (int, optional): 最多获取的公告数量. Defaults t
src/tool/financial_deep_search/risk_control_data.py:375
Function
get_stock_reports
获取特定股票的所有报告
src/utils/report_manager.py:303
Method
get_tool
(self, name: str)
src/tool/tool_collection.py:49
Function
handle_sse
(request: Request)
src/mcp/server.py:186
Function
health_check
(request: Request)
src/mcp/server.py:215
Method
init_mcp_clients
Initialize MCPClients if not provided.
src/agent/mcp.py:48
Method
initialize
Initialize the research environment with specialized agents.
src/environment/research.py:39
Method
initialize
Initialize the battle environment
src/environment/battle.py:179
Method
initialize_agent
Initialize agent with default settings if not provided.
src/agent/base.py:49
Method
llm
(self)
src/config.py:296
Method
load_report
加载报告
src/utils/report_manager.py:108
Method
mcp_config
Get the MCP configuration
src/config.py:308
Method
messages
Retrieve a list of messages from the agent's memory.
src/agent/base.py:187
Method
perform_search
Google search engine. Returns results formatted according to SearchItem model.
src/tool/search/google_search.py:9
Method
perform_search
Bing search engine. Returns results formatted according to SearchItem model.
src/tool/search/bing_search.py:136
Method
perform_search
Baidu search engine. Returns results formatted according to SearchItem model.
src/tool/search/baidu_search.py:9
Method
perform_search
DuckDuckGo search engine. Returns results formatted according to SearchItem model.
src/tool/search/duckduckgo_search.py:9
Method
populate_output
Populate output or error fields based on search results.
src/tool/web_search.py:65
Function
print_separator
Print a separator line
src/console.py:536
Method
register_agent
Register an agent with battle tools and instructions
src/environment/battle.py:185
Method
reset_execution_state
Reset the agent's execution state to prepare for a new run. Resets the current step counter to zero and returns the agent to IDLE state.
src/agent/base.py:196
Method
root_path
Get the root path of the application
src/config.py:323
Method
run
Run the environment. Override in subclasses.
src/environment/base.py:48
Method
run
Run research on the given stock code using all specialist agents.
src/environment/research.py:59
Method
run
Run big deal analysis
src/agent/big_deal_analysis.py:31
Method
run
Run institutional trading analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides
src/agent/hot_money.py:33
Method
run
运行筹码分析,分析指定股票的筹码分布和技术指标 Args: request: Optional initial request to process. If provided, overrides stock_code parameter.
src/agent/chip_analysis.py:33
Method
run
Run the agent with cleanup when done.
src/agent/toolcall.py:270
Method
run
Run risk analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides stock_code param
src/agent/risk_control.py:30
Method
run
Run technical analysis on the given stock using technical indicators. Args: request: Optional initial request to process. If prov
src/agent/technical_analysis.py:33
Method
run
Run sentiment analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides stock_code
src/agent/sentiment.py:36
Function
save_debate_report
保存辩论对话的便捷函数
src/utils/report_manager.py:291
Function
save_html_report
保存HTML报告的便捷函数
src/utils/report_manager.py:285
Function
save_vote_report
保存投票结果的便捷函数
src/utils/report_manager.py:297
Method
search_config
(self)
src/config.py:304
Method
show_analysis_result
Display comprehensive analysis results
src/console.py:155
Function
show_analysis_results
Display final analysis results
src/console.py:487
Function
show_debate_results
Display debate results
src/console.py:519
Function
show_header
(stock_code: str)
src/console.py:475
Function
show_logo
()
src/console.py:472
Function
show_progress_stats
Show progress statistics
src/console.py:523
Method
show_tool_call
Display tool call in a beautiful frame
src/console.py:66
Method
show_tool_result
Display tool result with beautiful formatting
src/console.py:94
Method
step
Execute a single step: think and act.
src/agent/react.py:33
Method
think
Process current state and decide next action.
src/agent/mcp.py:247
Method
think
Process current state and decide next actions using tools
src/agent/toolcall.py:51
Method
to_dict_list
Convert messages to list of dicts
src/schema.py:193
Method
tool_method
(**kwargs)
src/mcp/server.py:51
Method
tts_config
获取TTS配置
src/config.py:313
Function
with_cache
缓存装饰器
src/tool/create_html.py:162
Method
workspace_root
Get the workspace root directory
src/config.py:318
Function
wrapper
(self, stock_code: str, **kwargs)
src/tool/create_html.py:165
← previous
301–390 of 390, ranked by callers