academia-mcp 1.6.3__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.
@@ -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
@@ -121,11 +121,9 @@ Your task is to score the proposals.
121
121
 
122
122
  Proposals:
123
123
  {% for proposal in proposals %}
124
- - Proposal ID: {{proposal["proposal_id"]}}
125
- - Spark: {{proposal["spark"]}}
126
- - Abstract: {{proposal["abstract"]}}
127
- - Experiments: {{proposal["experiments"]}}
128
- - Risks and limitations: {{proposal["risks_and_limitations"]}}
124
+ ----
125
+ {{proposal}}
126
+ ----
129
127
  {% endfor %}
130
128
 
131
129
  Here are the criteria:
@@ -251,7 +249,7 @@ async def generate_research_proposal(bit: str, additional_context: str = "") ->
251
249
  return str(proposal.model_dump_json())
252
250
 
253
251
 
254
- async def score_research_proposals(proposals: List[str]) -> str:
252
+ async def score_research_proposals(proposals: List[str | Dict[str, Any] | Any]) -> str:
255
253
  """
256
254
  Scores a list of research proposals.
257
255
  Use proposals obtained with the `generate_research_proposal` tool.
@@ -278,8 +276,7 @@ async def score_research_proposals(proposals: List[str]) -> str:
278
276
  proposals: A list of JSON strings with research proposals.
279
277
  """
280
278
  model_name = os.getenv("BITFLIP_MODEL_NAME", "deepseek/deepseek-chat-v3-0324")
281
- proposals = [Proposal.model_validate_json(proposal) for proposal in proposals]
282
- prompt = encode_prompt(SCORE_PROMPT, proposals=proposals)
279
+ prompt = encode_prompt(SCORE_PROMPT, proposals=[str(p) for p in proposals])
283
280
  content = await llm_acall(
284
281
  model_name=model_name, messages=[ChatMessage(role="user", content=prompt)]
285
282
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: academia-mcp
3
- Version: 1.6.3
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=Lu2UASqabiMQ-F-s1BTDWMNuIceys9NIOM9M1bpJczk,11118
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.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- academia_mcp-1.6.3.dist-info/METADATA,sha256=6JPfXvLaVPY7pMfqMFSxvtrXUeIvLdIqWcjCLU7S_Zs,3714
26
- academia_mcp-1.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- academia_mcp-1.6.3.dist-info/entry_points.txt,sha256=gxkiKJ74w2FwJpSECpjA3XtCfI5ZfrM6N8cqnwsq4yY,51
28
- academia_mcp-1.6.3.dist-info/top_level.txt,sha256=CzGpRFsRRJRqWEb1e3SUlcfGqRzOxevZGaJWrtGF8W0,13
29
- academia_mcp-1.6.3.dist-info/RECORD,,
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,,