MCPcopy Create free account
hub / github.com/Tong89/smartNode / get_all_requests

Method get_all_requests

backend/core.py:2124–2130  ·  view source on GitHub ↗

获取所有用户请求 (不包括背景任务)

(self)

Source from the content-addressed store, hash-verified

2122 self.request_history.append(req)
2123
2124 def get_all_requests(self):
2125 """获取所有用户请求 (不包括背景任务)"""
2126 with self.lock:
2127 all_reqs = self.transmission_requests + self.request_history
2128 # 只返回用户请求,过滤掉背景任务
2129 user_reqs = [req for req in all_reqs if req.source == "user"]
2130 return [req.to_dict() for req in user_reqs]
2131
2132 def get_requests_paginated(
2133 self,

Callers 1

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected