MCPcopy Create free account

hub / github.com/1sdv/TripStar / functions

Functions1,217 in github.com/1sdv/TripStar

↓ 1 callersFunction_callSuper
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22447
↓ 1 callersMethod_dispatch
(self, tool_name: str, arguments: dict)
backend/app/agents/trip_planner_agent.py:335
↓ 1 callersMethod_fallback_amap_weather
使用高德天气 HTTP REST API 直接获取天气, 作为 Google Weather 的降级备选。 跳过 MCP Agent 调用, 直接用 httpx 请求高德天气 API。
backend/app/agents/trip_planner_agent.py:382
↓ 1 callersFunction_geocode_amap_raw
纯高德 Web 服务地理编码(供 map_dispatcher 降级调用)。 返回: {"longitude": float, "latitude": float}
backend/app/services/xhs_service.py:203
↓ 1 callersFunction_get_llm_runtime_config
按请求实时读取 LLM 配置,支持前端设置页热更新。
backend/app/services/chat_service.py:28
↓ 1 callersFunction_get_request_headers_template
构建基础请求头模板
backend/app/services/xhs_sign/sign_util.py:80
↓ 1 callersMethod_init_amap_tools
初始化高德地图 MCP 工具。
backend/app/agents/trip_planner_agent.py:246
↓ 1 callersMethod_init_google_tools
初始化 Google Maps 本地适配器工具。
backend/app/agents/trip_planner_agent.py:259
↓ 1 callersFunction_isNativeReflectConstruct
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:22454
↓ 1 callersMethod_llm_repair_json
使用 LLM 修复无法自动修复的 JSON(最后手段)
backend/app/agents/trip_planner_agent.py:892
↓ 1 callersFunction_load_history_items
按最近更新时间返回已完成的历史计划摘要。
backend/app/api/routes/trip.py:188
↓ 1 callersFunction_load_persisted_tasks
服务启动时预加载历史任务。
backend/app/api/routes/trip.py:125
↓ 1 callersFunction_load_runtime_overrides
加载本地持久化的运行时配置覆盖项。
backend/app/config.py:89
↓ 1 callersFunction_load_task_from_disk
从磁盘加载单个任务。
backend/app/api/routes/trip.py:106
↓ 1 callersFunction_objectSpread
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22652
↓ 1 callersMethod_parse_response
解析Agent响应,带有多层容错清理 Args: response: Agent响应文本 request: 原始请求 Returns:
backend/app/agents/trip_planner_agent.py:938
↓ 1 callersFunction_persist_runtime_overrides
持久化运行时配置覆盖项。
backend/app/config.py:103
↓ 1 callersMethod_request
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:69158
↓ 1 callersMethod_run_planner_with_retry
规划阶段使用更长超时,并在超时后重试一次。 Args: attractions: {city_name: 景点搜索结果文本} weather: {city_name: 天气查询结果文本} hot
backend/app/agents/trip_planner_agent.py:567
↓ 1 callersFunction_run_trip_planning
后台执行旅行规划并推送进度。
backend/app/api/routes/trip.py:321
↓ 1 callersFunction_sync_env_from_settings
将运行时配置同步到环境变量,兼容读取 env 的第三方组件。
backend/app/config.py:110
↓ 1 callersFunctiona0_0x4562
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:19147
↓ 1 callersMethodaccessor
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:68485
↓ 1 callersFunctionadaptGetDeviceInfo
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:24304
↓ 1 callersFunctionaddCalledJsListener
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:25449
↓ 1 callersFunctionai
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:6259
↓ 1 callersFunctionappVersionEq
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22436
↓ 1 callersFunctionar
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:4227
↓ 1 callersFunctionbe
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:38551
↓ 1 callersFunctionbeforeRecallHandle
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22335
↓ 1 callersFunctionbn
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:5095
↓ 1 callersFunctionbridge
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22481
↓ 1 callersFunctionbridgeAdapter_callbackAdapter
(t, e, r, n)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22570
↓ 1 callersFunctionbuild_knowledge_graph
从 TripPlan 构建知识图谱数据 Args: trip_plan: 旅行计划数据 language: 界面语言代码 (zh/en/ja 等) Returns: { "nodes": [{"id
backend/app/services/knowledge_graph_service.py:97
↓ 1 callersFunctionchat_with_trip_context
使用 LLM 回答关于当前行程的用户提问 Args: message: 用户的提问 trip_plan_dict: 当前旅行计划 (dict 格式) history: 可选的历史对话 [{"role": "user"/"assist
backend/app/services/chat_service.py:65
↓ 1 callersFunctionchecks_checkArgs
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22537
↓ 1 callersFunctioncloseWindow
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:23485
↓ 1 callersFunctionco
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:31619
↓ 1 callersFunctioncompleteUrl_completeUrl
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:23739
↓ 1 callersFunctionconfirmAntiSpam
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:23665
↓ 1 callersMethodconstructor
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:54827
↓ 1 callersFunctioncrc32
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:17420
↓ 1 callersFunctiondata_registerNoticeLegacy
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:24965
↓ 1 callersFunctiondealSmDeviceId
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:18894
↓ 1 callersFunctiondr
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:28082
↓ 1 callersFunctionemitRuntimeSettingsUpdated
()
frontend/src/services/api.ts:145
↓ 1 callersFunctionen
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:29511
↓ 1 callersFunctionen
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack2.js:18151
↓ 1 callersFunctionencodeChunk
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:17434
↓ 1 callersFunctionencodeChunk
(e, u, l)
backend/app/services/xhs_sign/xhs_xs_xsc_56.js:293
↓ 1 callersFunctionencrypt_encodeChunk
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:19216
↓ 1 callersFunctionescapeNewLineChars
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22545
↓ 1 callersFunctionfa
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:8493
↓ 1 callersFunctionfo
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:5923
↓ 1 callersFunctionfu
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:10408
↓ 1 callersFunctionga
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:8641
↓ 1 callersFunctiongenRandomString
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:17933
↓ 1 callersFunctiongenerateKey
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:22513
↓ 1 callersFunctiongenerateLocalId
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:18101
↓ 1 callersFunctiongenerate_headers
生成带完整签名的请求头,返回 (headers, serialized_data)
backend/app/services/xhs_sign/sign_util.py:107
↓ 1 callersFunctiongenerate_xray_traceid
生成 x-xray-traceid
backend/app/services/xhs_sign/sign_util.py:69
↓ 1 callersFunctiongenerate_xs_xs_common
调用签名 JS 生成 x-s, x-t, x-s-common
backend/app/services/xhs_sign/sign_util.py:74
↓ 1 callersMethodgeocode
地理编码 (地址 → 坐标) https://developers.google.com/maps/documentation/geocoding
backend/app/services/google_map_service.py:86
↓ 1 callersFunctiongeocode_amap
统一地理编码入口 — 自动路由到 Google / 高德。 内部通过 map_dispatcher 判断当前活跃供应商, 并根据供应商自动选择最合适语言的地址进行编码: - Google Maps: 优先使用英文名称 (name_en) - 高德地图: 优先使用中文
backend/app/services/xhs_service.py:227
↓ 1 callersFunctiongeocode_unified
统一地理编码接口,返回 {"longitude": float, "latitude": float}。 根据 get_map_provider() 的结果,自动路由到 Google 或高德, 并根据供应商特性自动选择最合适语言的地址: - Google Maps: 优先使
backend/app/services/map_dispatcher.py:36
↓ 1 callersFunctiongetBackendRuntimeSettings
()
frontend/src/services/api.ts:182
↓ 1 callersFunctiongetCaptchaUrl
(t, e, r, n, o, i)
backend/app/services/xhs_sign/xhs_xray_pack1.js:25794
↓ 1 callersFunctiongetCurrentLocale
()
frontend/src/i18n/index.ts:48
↓ 1 callersFunctiongetDeviceInfo
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:24348
↓ 1 callersFunctiongetErrorPageHost
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:17925
↓ 1 callersFunctiongetErrorUrl
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:21924
↓ 1 callersFunctiongetItemOld
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:24797
↓ 1 callersFunctiongetMessageStatusIOS
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:24986
↓ 1 callersFunctiongetRealUrl
(t, e, r)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22091
↓ 1 callersFunctiongetRedHost
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:17918
↓ 1 callersFunctiongetRuntimeMapJsKey
()
frontend/src/services/api.ts:91
↓ 1 callersFunctiongetSigCount
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22159
↓ 1 callersFunctiongetUserInfoV2
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:24526
↓ 1 callersFunctiongetWsBaseUrl
()
frontend/src/services/api.ts:120
↓ 1 callersFunctionget_amap_mcp_tool
获取高德地图MCP工具实例(单例模式) Returns: MCPTool实例
backend/app/services/amap_service.py:12
↓ 1 callersMethodget_cors_origins_list
获取CORS origins列表
backend/app/config.py:69
↓ 1 callersFunctionget_google_map_service
获取 Google Maps 服务实例 (单例模式)。如果 API Key 未配置则返回 None。
backend/app/services/google_map_service.py:276
↓ 1 callersFunctionget_note_detail_ssr
通过网页抓取 SSR 状态提取笔记详情,作为原生 API 的降级备选
backend/app/services/xhs_service.py:241
↓ 1 callersFunctionget_photo_from_xhs
供异步环境调用的小红书图片搜索API
backend/app/services/xhs_service.py:484
↓ 1 callersMethodget_poi_detail
获取POI详情 Args: poi_id: POI ID Returns: POI详情信息
backend/app/services/amap_service.py:219
↓ 1 callersFunctionget_request_headers_params
* 获取请求头参数 - 主入口函数 * @param {string} api - API路径 * @param {string|object} data - 请求数据 * @param {string} a1 - a1 cookie值 * @param {string} method -
backend/app/services/xhs_sign/xhs_xs_xsc_56.js:449
↓ 1 callersFunctionget_settings
获取配置实例
backend/app/config.py:135
↓ 1 callersFunctionget_x_s
()
backend/app/services/xhs_sign/xhs_xs_xsc_56.js:475
↓ 1 callersFunctiongr
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:28117
↓ 1 callersFunctionhandlerRiskError
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:21912
↓ 1 callersFunctionhandlerRiskLogin
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:26191
↓ 1 callersFunctionhexToBytes
(hexStr)
backend/app/services/xhs_sign/xhs_xs_xsc_56.js:408
↓ 1 callersFunctionhn
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack2.js:18350
↓ 1 callersFunctionhu
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:10567
↓ 1 callersFunctioninitCaptcha
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:18931
↓ 1 callersFunctioninitVerifySdk
(t, e)
backend/app/services/xhs_sign/xhs_xray_pack1.js:26495
↓ 1 callersFunctioninstallPolyfill
()
backend/app/services/xhs_sign/xhs_xray_pack1.js:23750
↓ 1 callersFunctionio
(t)
backend/app/services/xhs_sign/xhs_xray_pack2.js:19626
↓ 1 callersFunctionisSupport_isSupport
(t)
backend/app/services/xhs_sign/xhs_xray_pack1.js:22402
↓ 1 callersFunctionjo
()
backend/app/services/xhs_sign/xhs_xray_pack2.js:19850
← previousnext →701–800 of 1,217, ranked by callers