academia-mcp 1.6.4__py3-none-any.whl → 1.6.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- academia_mcp/tools/bitflip.py +3 -3
- {academia_mcp-1.6.4.dist-info → academia_mcp-1.6.5.dist-info}/METADATA +1 -1
- {academia_mcp-1.6.4.dist-info → academia_mcp-1.6.5.dist-info}/RECORD +7 -7
- {academia_mcp-1.6.4.dist-info → academia_mcp-1.6.5.dist-info}/WHEEL +0 -0
- {academia_mcp-1.6.4.dist-info → academia_mcp-1.6.5.dist-info}/entry_points.txt +0 -0
- {academia_mcp-1.6.4.dist-info → academia_mcp-1.6.5.dist-info}/licenses/LICENSE +0 -0
- {academia_mcp-1.6.4.dist-info → academia_mcp-1.6.5.dist-info}/top_level.txt +0 -0
academia_mcp/tools/bitflip.py
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
import json
|
5
5
|
import os
|
6
6
|
import random
|
7
|
-
from typing import List, Optional, Any
|
7
|
+
from typing import List, Optional, Any, Dict
|
8
8
|
|
9
9
|
from pydantic import BaseModel
|
10
10
|
from datasets import load_dataset # type: ignore
|
@@ -249,7 +249,7 @@ async def generate_research_proposal(bit: str, additional_context: str = "") ->
|
|
249
249
|
return str(proposal.model_dump_json())
|
250
250
|
|
251
251
|
|
252
|
-
async def score_research_proposals(proposals: List[str]) -> str:
|
252
|
+
async def score_research_proposals(proposals: List[str | Dict[str, Any] | Any]) -> str:
|
253
253
|
"""
|
254
254
|
Scores a list of research proposals.
|
255
255
|
Use proposals obtained with the `generate_research_proposal` tool.
|
@@ -276,7 +276,7 @@ async def score_research_proposals(proposals: List[str]) -> str:
|
|
276
276
|
proposals: A list of JSON strings with research proposals.
|
277
277
|
"""
|
278
278
|
model_name = os.getenv("BITFLIP_MODEL_NAME", "deepseek/deepseek-chat-v3-0324")
|
279
|
-
prompt = encode_prompt(SCORE_PROMPT, proposals=proposals)
|
279
|
+
prompt = encode_prompt(SCORE_PROMPT, proposals=[str(p) for p in proposals])
|
280
280
|
content = await llm_acall(
|
281
281
|
model_name=model_name, messages=[ChatMessage(role="user", content=prompt)]
|
282
282
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: academia-mcp
|
3
|
-
Version: 1.6.
|
3
|
+
Version: 1.6.5
|
4
4
|
Summary: MCP server that provides different tools to search for scientific publications
|
5
5
|
Author-email: Ilya Gusev <phoenixilya@gmail.com>
|
6
6
|
Project-URL: Homepage, https://github.com/IlyaGusev/academia_mcp
|
@@ -12,7 +12,7 @@ academia_mcp/tools/__init__.py,sha256=N3GLWvrsDBOlAcCRZUUZ6nkR5AkLvX0k26cNJt3hLK
|
|
12
12
|
academia_mcp/tools/anthology_search.py,sha256=rhFpJZqGLABgr0raDuH0CARBiAJNJtEI4dlMrKNHfDQ,7669
|
13
13
|
academia_mcp/tools/arxiv_download.py,sha256=gBY0_Kz0yGtVkLMwn6GrAyfBjovZVgcSMuyy67p65Cw,10474
|
14
14
|
academia_mcp/tools/arxiv_search.py,sha256=pzM18qrF3QL03A53w003kE7hQi3s3QKtjgw0m7K88UY,8355
|
15
|
-
academia_mcp/tools/bitflip.py,sha256=
|
15
|
+
academia_mcp/tools/bitflip.py,sha256=Clr3tXWWDCPCcJOIvzUtTE_ZMFyGHaOml_e7VW9G2Nc,10888
|
16
16
|
academia_mcp/tools/document_qa.py,sha256=t9mygYQ7AFIAPiha1nZ-y043luQlkTCBdWb_SDnzEsE,2444
|
17
17
|
academia_mcp/tools/hf_datasets_search.py,sha256=KiBkqT4rXjEN4oc1AWZOPnqN_Go90TQogY5-DUm3LQo,2854
|
18
18
|
academia_mcp/tools/latex.py,sha256=bf8VZUgCByzBAMTZCeqrRrmakotext3d3DbtkiOTh1k,5892
|
@@ -21,9 +21,9 @@ academia_mcp/tools/review.py,sha256=LbebOHGs76qoSgWvTQ9Uj1fvmjc2eSBudX6n_zCINYI,
|
|
21
21
|
academia_mcp/tools/s2_citations.py,sha256=dqrBp76RrX1zH2XzcMAoWBbvbtyhxLeF-xnqOKD_JiM,4852
|
22
22
|
academia_mcp/tools/visit_webpage.py,sha256=OZdqDkVPIbANyFw5o5jIjU5Rr_dolxrGDs63Ud-GmRM,1966
|
23
23
|
academia_mcp/tools/web_search.py,sha256=mobKm4iqKppn8pduZYMzWRo1MQBjkAqmMtrFLI5XY2Y,6296
|
24
|
-
academia_mcp-1.6.
|
25
|
-
academia_mcp-1.6.
|
26
|
-
academia_mcp-1.6.
|
27
|
-
academia_mcp-1.6.
|
28
|
-
academia_mcp-1.6.
|
29
|
-
academia_mcp-1.6.
|
24
|
+
academia_mcp-1.6.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
25
|
+
academia_mcp-1.6.5.dist-info/METADATA,sha256=_wTO5Id61FHijo5ijs6lasnKRVZqPdM4JhsP3QMMfFA,3714
|
26
|
+
academia_mcp-1.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
27
|
+
academia_mcp-1.6.5.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
|
28
|
+
academia_mcp-1.6.5.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
|
29
|
+
academia_mcp-1.6.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|