om4r932 commited on
Commit
10b8ff0
·
verified ·
1 Parent(s): 6135949

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +3 -3
server.py CHANGED
@@ -76,9 +76,9 @@ def locate_multiple_3gpp_documents(doc_ids: List[str]) -> str:
76
  return "\n".join([f"The document {doc_id} is downloadable via this link: {url}" for doc_id, url in responseJson['results']] + [f"We can't find document {doc_id}" for doc_id in responseJson['missing']])
77
 
78
  @mcp.tool()
79
- def locate_etsi_specifications(doc_id: str) -> str:
80
  """
81
- Find ETSI document location with the document's ID (starts with SET and SCP)
82
  Args: doc_id: string
83
  """
84
  response = requests.post("https://organizedprogrammers-etsidocfinder.hf.space/find", headers={
@@ -98,7 +98,7 @@ def locate_etsi_specifications(doc_id: str) -> str:
98
  return f"Document ID {responseJson['doc_id']} is downloadable via this link: {responseJson['url']}"
99
 
100
  @mcp.tool()
101
- def search_3gpp_specification(keywords: str, threshold: int, release: Optional[str] = "", working_group: Optional[str] = "", spec_type: Optional[str] = "") -> str:
102
  """
103
  Search 3GPP specifications with specified keywords and filters using BM25
104
  Args: keywords: string, threshold: integer 0-100 [default 60], release: optional filter, string [only the number Rel-19 -> '19'], working_group: optional filter, string [options: C1,C2,...,C6,CP or S1,S2,...,S6,SP], spec_type: optional filter, string [either TS (Technical Specification) or TR (Technical Report)]
 
76
  return "\n".join([f"The document {doc_id} is downloadable via this link: {url}" for doc_id, url in responseJson['results']] + [f"We can't find document {doc_id}" for doc_id in responseJson['missing']])
77
 
78
  @mcp.tool()
79
+ def locate_etsi_document(doc_id: str) -> str:
80
  """
81
+ Find ETSI document location with the document's ID (starts with SET or SCP)
82
  Args: doc_id: string
83
  """
84
  response = requests.post("https://organizedprogrammers-etsidocfinder.hf.space/find", headers={
 
98
  return f"Document ID {responseJson['doc_id']} is downloadable via this link: {responseJson['url']}"
99
 
100
  @mcp.tool()
101
+ def search_3gpp_specifications(keywords: str, threshold: int, release: Optional[str] = "", working_group: Optional[str] = "", spec_type: Optional[str] = "") -> str:
102
  """
103
  Search 3GPP specifications with specified keywords and filters using BM25
104
  Args: keywords: string, threshold: integer 0-100 [default 60], release: optional filter, string [only the number Rel-19 -> '19'], working_group: optional filter, string [options: C1,C2,...,C6,CP or S1,S2,...,S6,SP], spec_type: optional filter, string [either TS (Technical Specification) or TR (Technical Report)]