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
Method
_convert_openai_to_ollama
将OpenAI格式的请求转换为Ollama原生API格式
src/ollama_client.py:136
↓ 1 callers
Method
_create_type_schema
Create a JSON schema for the given type.
src/tool/create_chat_completion.py:58
↓ 1 callers
Method
_create_union_schema
Create schema for Union types.
src/tool/create_chat_completion.py:120
↓ 1 callers
Method
_create_usage_stats
从Ollama响应创建使用统计
src/ollama_client.py:233
↓ 1 callers
Method
_determine_trend_direction
确定趋势方向
src/tool/chip_analysis.py:787
↓ 1 callers
Method
_enhance_agents_with_visualization
Simple visualization enhancement without breaking functionality
main.py:167
↓ 1 callers
Method
_enhance_battle_agents_with_visualization
Enhance battle agents with visualization for debate messages
main.py:172
↓ 1 callers
Method
_evaluate_concentration_level
评估集中度水平
src/tool/chip_analysis.py:726
↓ 1 callers
Method
_extract_html_code
Extract HTML code from LLM response with enhanced parsing
src/tool/create_html.py:284
↓ 1 callers
Method
_fetch_content_for_results
Fetch and add web content to search results.
src/tool/web_search.py:329
↓ 1 callers
Method
_fetch_single_result_content
Fetch content for a single search result.
src/tool/web_search.py:352
↓ 1 callers
Method
_format_data
Format data to a JSON-serializable dictionary. Args: data: The data to format, typically from efinance Returns:
src/tool/stock_info_request.py:79
↓ 1 callers
Method
_generate_a_stock_characteristics_text
生成A股特色分析文本
src/tool/chip_analysis.py:808
↓ 1 callers
Method
_generate_comprehensive_summary
生成综合舆情分析报告
src/agent/sentiment.py:139
↓ 1 callers
Method
_generate_concentration_analysis_text
生成集中度分析文本
src/tool/chip_analysis.py:820
↓ 1 callers
Method
_generate_html
Generate a complete HTML page based on user request
src/tool/create_html.py:238
↓ 1 callers
Method
_generate_reports
Generate reports with progress visualization
main.py:192
↓ 1 callers
Method
_generate_trading_signals
生成交易决策信号
src/tool/chip_analysis.py:655
↓ 1 callers
Method
_generate_trend_analysis_text
生成趋势分析文本
src/tool/chip_analysis.py:824
↓ 1 callers
Method
_get_capital_flow
Get stock capital flow data
src/tool/technical_analysis.py:252
↓ 1 callers
Method
_get_chip_distribution
获取筹码分布数据
src/tool/chip_analysis.py:81
↓ 1 callers
Method
_get_config_path
()
src/config.py:190
↓ 1 callers
Method
_get_daily_kline
Get daily K-line data
src/tool/technical_analysis.py:214
↓ 1 callers
Method
_get_data_with_retry
Get data with retry mechanism. Args: func: Function to call data_name: Data name (for logging) m
src/tool/hot_money.py:144
↓ 1 callers
Method
_get_engine_order
Determines the order in which to try search engines.
src/tool/web_search.py:360
↓ 1 callers
Method
_get_minute_kline
Get minute K-line data
src/tool/technical_analysis.py:233
↓ 1 callers
Method
_get_realtime_quotes
Get real-time quotes data
src/tool/technical_analysis.py:184
↓ 1 callers
Method
_get_stock_info
获取股票基本信息
src/tool/chip_analysis.py:171
↓ 1 callers
Method
_handle_special_tool
Handle special tool execution and state changes
src/agent/toolcall.py:235
↓ 1 callers
Method
_handle_stream_response
处理Ollama流式响应并转换为OpenAI格式
src/ollama_client.py:246
↓ 1 callers
Method
_identify_hot_money_pattern
识别游资操作模式
src/tool/chip_analysis.py:800
↓ 1 callers
Method
_initialize_standard_tools
Initialize standard tools available in the server.
src/mcp/server.py:36
↓ 1 callers
Method
_inject_data_into_html
Inject data into HTML template with enhanced robustness and validation
src/tool/create_html.py:351
↓ 1 callers
Method
_is_report_path
检查是否为报告路径
src/tool/create_html.py:601
↓ 1 callers
Method
_is_special_tool
Check if tool name is in special tools list
src/agent/toolcall.py:250
↓ 1 callers
Method
_load_config
(self)
src/config.py:200
↓ 1 callers
Method
_load_initial_config
(self)
src/config.py:205
↓ 1 callers
Method
_main_cost_analysis
主力成本分析
src/tool/chip_analysis.py:449
↓ 1 callers
Method
_messages_to_prompt
将OpenAI messages格式转换为单个prompt字符串
src/ollama_client.py:178
↓ 1 callers
Method
_parse_html
Parse Bing search result HTML to extract search results and the next page URL. Returns: tuple: (List of SearchItem objec
src/tool/search/bing_search.py:77
↓ 1 callers
Method
_perform_search_with_engine
Execute search with the given engine and parameters.
src/tool/web_search.py:390
↓ 1 callers
Method
_prepare_final_results
Prepare final analysis results
main.py:315
↓ 1 callers
Method
_prepare_results
Prepare battle results with enhanced voting data.
src/environment/battle.py:621
↓ 1 callers
Method
_run_battle_phase
Run battle phase with enhanced visualization
main.py:120
↓ 1 callers
Method
_run_final_voting
Run final voting phase.
src/environment/battle.py:464
↓ 1 callers
Method
_run_research_phase
Run research phase with enhanced visualization
main.py:77
↓ 1 callers
Method
_run_single_agent_debate_turn
Run a single agent's debate turn with limited steps and retry mechanism.
src/environment/battle.py:430
↓ 1 callers
Method
_run_structured_debate
Run structured debate rounds with cumulative context passing.
src/environment/battle.py:355
↓ 1 callers
Method
_sanitize_data_for_js
Recursively sanitize data to prevent JavaScript injection issues
src/tool/create_html.py:337
↓ 1 callers
Method
_save_html_to_file
Save generated HTML to a file
src/tool/create_html.py:647
↓ 1 callers
Method
_save_with_report_manager
使用报告管理器保存HTML
src/tool/create_html.py:605
↓ 1 callers
Method
_search_sync
Synchronous Bing search implementation to retrieve search results. Args: query (str): The search query to submit to Bing
src/tool/search/bing_search.py:47
↓ 1 callers
Method
_send_debate_instruction
Send specific debate instruction to current speaker.
src/environment/battle.py:377
↓ 1 callers
Method
_send_initial_context
Send comprehensive research results to all agents.
src/environment/battle.py:312
↓ 1 callers
Method
_send_voting_instruction
Send voting instruction to agent.
src/environment/battle.py:505
↓ 1 callers
Method
_should_finish_execution
Determine if tool execution should finish the agent
src/agent/toolcall.py:246
↓ 1 callers
Method
_show_research_metrics
Show research metrics summary
src/console.py:431
↓ 1 callers
Method
_trapped_area_analysis
套牢区分析
src/tool/chip_analysis.py:524
↓ 1 callers
Method
_trend_analysis
筹码变化趋势分析
src/tool/chip_analysis.py:608
↓ 1 callers
Method
_try_all_engines
Try all search engines in the configured order.
src/tool/web_search.py:290
↓ 1 callers
Method
_validate_final_voting
验证最终投票统计的正确性
src/environment/battle.py:576
↓ 1 callers
Method
act
Execute decided actions
src/agent/react.py:30
↓ 1 callers
Method
add_highlight
Add highlight if content is significant with deduplication
src/environment/battle.py:137
↓ 1 callers
Method
add_tool
Add a single tool to the collection. If a tool with the same name already exists, it will be skipped and a warning will be logged.
src/tool/tool_collection.py:52
↓ 1 callers
Method
analyze_stock
Run complete stock analysis with enhanced visualization
main.py:31
↓ 1 callers
Function
announce_result_with_tts
使用TTS工具播报最终的博弈结果
main.py:340
↓ 1 callers
Method
ask
Send a prompt to the LLM and get the response. Args: messages: List of conversation messages system_msgs: Op
src/llm.py:343
↓ 1 callers
Method
ask_tool
Ask LLM using functions/tools and return the response. Args: messages: List of conversation messages system_
src/llm.py:636
↓ 1 callers
Method
cleanup
Clean up server resources.
src/mcp/server.py:145
↓ 1 callers
Method
cleanup
Clean up resources used by the agent's tools.
src/agent/toolcall.py:254
↓ 1 callers
Function
cleanup_reports
清理过期报告
src/utils/cleanup_reports.py:26
↓ 1 callers
Function
clear_screen
Clear the screen
src/console.py:532
↓ 1 callers
Method
connect_stdio
Connect to an MCP server using stdio transport.
src/tool/mcp_client.py:72
↓ 1 callers
Method
count_content
Calculate tokens for message content
src/llm.py:140
↓ 1 callers
Method
count_image
Calculate tokens for an image based on detail level and dimensions For "low" detail: fixed 85 tokens For "high" detail:
src/llm.py:79
↓ 1 callers
Method
count_tokens
Calculate the number of tokens in a text
src/llm.py:257
↓ 1 callers
Method
count_tool_calls
Calculate tokens for tool calls
src/llm.py:159
↓ 1 callers
Function
create_starlette_app
Create a Starlette application that can serve the provided mcp server with SSE.
src/mcp/server.py:170
↓ 1 callers
Function
define_log_level
Adjust the log level to above level
src/logger.py:13
↓ 1 callers
Method
disconnect_mcp_server
Disconnect from an MCP server and remove its tools.
src/agent/mcp.py:133
↓ 1 callers
Function
display_results
Display or save research results.
main.py:384
↓ 1 callers
Method
ensure_cache_dir
确保缓存目录存在
src/tool/create_html.py:53
↓ 1 callers
Method
ensure_directories
确保所有必要的目录存在
src/utils/report_manager.py:35
↓ 1 callers
Method
execute
Execute the hot money data retrieval operation. Args: stock_code: Stock code, e.g. "600519" index_code: Inde
src/tool/hot_money.py:73
↓ 1 callers
Method
execute
Get risk control data for a single stock with retry mechanism. Args: stock_code: Stock code max_count: Maxim
src/tool/risk_control.py:47
↓ 1 callers
Method
execute
Get technical data for a stock with retry mechanism. Args: stock_code: Stock code need_realtime: Whether to
src/tool/technical_analysis.py:60
↓ 1 callers
Method
execute
Execute a Web search and return detailed search results. Args: query: The search query to submit to the search engine
src/tool/web_search.py:201
↓ 1 callers
Method
execute
Convert text to speech using Volcengine TTS API
src/tool/tts_tool.py:212
↓ 1 callers
Method
execute
Get market data with retry mechanism. Args: index_code: Index code sector_types: Sector types, options: 'all
src/tool/sentiment.py:38
↓ 1 callers
Method
execute_tool
Execute a single tool call with robust error handling
src/agent/toolcall.py:183
↓ 1 callers
Method
fetch_content
Fetch and extract the main content from a webpage. Args: url: The URL to fetch content from timeout: Request
src/tool/web_search.py:110
↓ 1 callers
Function
fetch_data
(sector_type, url, max_retries=3, retry_delay=2)
src/tool/financial_deep_search/get_section_data.py:33
↓ 1 callers
Function
fetch_index_capital_flow
获取指数资金流向数据 参数: index_code: 指数代码,默认为上证指数(000001) max_retries: 最大重试次数 retry_delay: 重试延迟时间(秒) 返回: dict: 包含
src/tool/financial_deep_search/index_capital.py:85
↓ 1 callers
Function
fetch_single_stock_capital_flow
获取单个股票的资金流向数据 参数: stock_code: 股票代码,如"000001" max_retries: 最大重试次数 retry_delay: 重试延迟时间(秒) 返回: dict: 包含单个股
src/tool/financial_deep_search/stock_capital.py:110
↓ 1 callers
Function
find_stock_reports
查找特定股票的报告
src/utils/cleanup_reports.py:107
↓ 1 callers
Method
from_tool_calls
Create ToolCallsMessage from raw tool calls. Args: tool_calls: Raw tool calls from LLM content: Optional message cont
src/schema.py:140
↓ 1 callers
Method
generate_filename
生成报告文件名
src/utils/report_manager.py:43
↓ 1 callers
Function
get_agent_instructions
根据智能体名称和描述生成个性化的指令 Args: agent_name: 智能体名称 agent_description: 智能体描述 Returns: 格式化的智能体指令
src/prompt/battle.py:41
↓ 1 callers
Function
get_announcements_with_detail
获取指定股票公告的标题列表, 只保留标题, 并限制至最多50条
src/tool/financial_deep_search/risk_control_data.py:115
↓ 1 callers
Function
get_balance_sheet
获取资产负债表
src/tool/financial_deep_search/risk_control_data.py:164
← previous
next →
101–200 of 390, ranked by callers