MCPcopy Create free account

hub / github.com/HuaYaoAI/FinGenius / functions

Functions390 in github.com/HuaYaoAI/FinGenius

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
Methodact
Execute tool calls and handle their results
src/agent/toolcall.py:148
Methodadd_messages
Add multiple messages to memory
src/schema.py:178
Methodall_agents_decided
Check if all agents have made their final decision (voted at least once or terminated)
src/environment/battle.py:159
Methodanalyze
执行舆情分析
src/agent/sentiment.py:61
Methodask_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
Methodbasic_info
Get the basic stock information from the output.
src/tool/stock_info_request.py:23
Methodbrowser_config
(self)
src/config.py:300
Methodcleanup
Clean up resources when done
src/environment/base.py:52
Methodcleanup
Clean up all agent resources.
src/environment/research.py:148
Methodcleanup
Clean up battle resources
src/environment/battle.py:277
Methodcleanup_expired_cache
清理过期缓存
src/tool/create_html.py:131
Functioncleanup_reports
清理过期报告
src/utils/report_manager.py:308
Methodclose
关闭HTTP客户端
src/ollama_client.py:47
Methodcombine_fields
( field: Optional[str], other_field: Optional[str], concatenate: bool = True )
src/tool/base.py:54
Methodcompletions
返回completions接口
src/ollama_client.py:59
Methodcount_message_tokens
Calculate the total number of tokens in a message list
src/llm.py:169
Methodcreate
创建chat completion请求 - 转换为Ollama原生/api/generate调用
src/ollama_client.py:70
Methodcreate_environment
Create and initialize an environment of the specified type Args: environment_type: The type of environment to create
src/environment/base.py:68
Methodcurrent_trading_day
Get the current trading day from the output.
src/tool/stock_info_request.py:18
Functiondecorator
(func)
src/tool/create_html.py:164
Methodenhanced_broadcast
(sender_id: str, content: str, event_type: str)
main.py:178
Methodexecute
Execute the tool by making a remote call to the MCP server.
src/tool/mcp_client.py:20
Methodexecute
Fetch big deal fund flow data and return structured result.
src/tool/big_deal_analysis.py:54
Methodexecute
( self, *, name: str, tool_input: Dict[str, Any] = None )
src/tool/tool_collection.py:25
Methodexecute
Execute HTML generation operation with enhanced error handling and validation Args: request: Detailed description of the HTML pag
src/tool/create_html.py:662
Methodexecute
执行筹码分析
src/tool/chip_analysis.py:41
Methodexecute
Finish the current execution
src/tool/terminate.py:23
Methodexecute
Execute the battle action with speaking and/or voting
src/tool/battle.py:32
Methodexecute
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
Methodexecute_all
Execute all tools in the collection sequentially.
src/tool/tool_collection.py:38
Functionget_all_stock_codes
从CSV文件获取所有股票代码和名称
src/tool/financial_deep_search/risk_control_data.py:332
Functionget_company_name_for_stock
从CSV文件或缓存中获取股票对应的公司名称
src/tool/financial_deep_search/risk_control_data.py:276
Methodget_latest_report
获取最新的报告
src/utils/report_manager.py:269
Methodget_recent_messages
Get n most recent messages
src/schema.py:189
Functionget_report_context
根据股票分析报告生成上下文信息 Args: summary: 报告摘要 pros: 股票的优势列表 cons: 股票的劣势列表 Returns: 格式化的报告上下文
src/prompt/battle.py:241
Functionget_risk_control_data
获取单只股票的风控数据(财务数据和法务公告),集成版,支持最大重试机制。 Args: stock_code (str): 股票代码,如"600519" max_count (int, optional): 最多获取的公告数量. Defaults t
src/tool/financial_deep_search/risk_control_data.py:375
Functionget_stock_reports
获取特定股票的所有报告
src/utils/report_manager.py:303
Methodget_tool
(self, name: str)
src/tool/tool_collection.py:49
Functionhandle_sse
(request: Request)
src/mcp/server.py:186
Functionhealth_check
(request: Request)
src/mcp/server.py:215
Methodinit_mcp_clients
Initialize MCPClients if not provided.
src/agent/mcp.py:48
Methodinitialize
Initialize the research environment with specialized agents.
src/environment/research.py:39
Methodinitialize
Initialize the battle environment
src/environment/battle.py:179
Methodinitialize_agent
Initialize agent with default settings if not provided.
src/agent/base.py:49
Methodllm
(self)
src/config.py:296
Methodload_report
加载报告
src/utils/report_manager.py:108
Methodmcp_config
Get the MCP configuration
src/config.py:308
Methodmessages
Retrieve a list of messages from the agent's memory.
src/agent/base.py:187
Methodperform_search
Google search engine. Returns results formatted according to SearchItem model.
src/tool/search/google_search.py:9
Methodperform_search
Bing search engine. Returns results formatted according to SearchItem model.
src/tool/search/bing_search.py:136
Methodperform_search
Baidu search engine. Returns results formatted according to SearchItem model.
src/tool/search/baidu_search.py:9
Methodperform_search
DuckDuckGo search engine. Returns results formatted according to SearchItem model.
src/tool/search/duckduckgo_search.py:9
Methodpopulate_output
Populate output or error fields based on search results.
src/tool/web_search.py:65
Functionprint_separator
Print a separator line
src/console.py:536
Methodregister_agent
Register an agent with battle tools and instructions
src/environment/battle.py:185
Methodreset_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
Methodroot_path
Get the root path of the application
src/config.py:323
Methodrun
Run the environment. Override in subclasses.
src/environment/base.py:48
Methodrun
Run research on the given stock code using all specialist agents.
src/environment/research.py:59
Methodrun
Run big deal analysis
src/agent/big_deal_analysis.py:31
Methodrun
Run institutional trading analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides
src/agent/hot_money.py:33
Methodrun
运行筹码分析,分析指定股票的筹码分布和技术指标 Args: request: Optional initial request to process. If provided, overrides stock_code parameter.
src/agent/chip_analysis.py:33
Methodrun
Run the agent with cleanup when done.
src/agent/toolcall.py:270
Methodrun
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
Methodrun
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
Methodrun
Run sentiment analysis on the given stock. Args: request: Optional initial request to process. If provided, overrides stock_code
src/agent/sentiment.py:36
Functionsave_debate_report
保存辩论对话的便捷函数
src/utils/report_manager.py:291
Functionsave_html_report
保存HTML报告的便捷函数
src/utils/report_manager.py:285
Functionsave_vote_report
保存投票结果的便捷函数
src/utils/report_manager.py:297
Methodsearch_config
(self)
src/config.py:304
Methodshow_analysis_result
Display comprehensive analysis results
src/console.py:155
Functionshow_analysis_results
Display final analysis results
src/console.py:487
Functionshow_debate_results
Display debate results
src/console.py:519
Functionshow_header
(stock_code: str)
src/console.py:475
Functionshow_logo
()
src/console.py:472
Functionshow_progress_stats
Show progress statistics
src/console.py:523
Methodshow_tool_call
Display tool call in a beautiful frame
src/console.py:66
Methodshow_tool_result
Display tool result with beautiful formatting
src/console.py:94
Methodstep
Execute a single step: think and act.
src/agent/react.py:33
Methodthink
Process current state and decide next action.
src/agent/mcp.py:247
Methodthink
Process current state and decide next actions using tools
src/agent/toolcall.py:51
Methodto_dict_list
Convert messages to list of dicts
src/schema.py:193
Methodtool_method
(**kwargs)
src/mcp/server.py:51
Methodtts_config
获取TTS配置
src/config.py:313
Functionwith_cache
缓存装饰器
src/tool/create_html.py:162
Methodworkspace_root
Get the workspace root directory
src/config.py:318
Functionwrapper
(self, stock_code: str, **kwargs)
src/tool/create_html.py:165
← previous301–390 of 390, ranked by callers