prebuilt.scientific_paper_agent.models¶

Classes¶

CoreAPIWrapper

Simple wrapper around the CORE API.

DecisionMakingOutput

Output object of the decision making node.

JudgeOutput

Output object of the judge node.

SearchPapersInput

Input object to search papers with the CORE API.

Module Contents¶

class prebuilt.scientific_paper_agent.models.CoreAPIWrapper(/, **data: Any)¶

Bases: pydantic.BaseModel

Simple wrapper around the CORE API.

search(query: str) str¶

Search.

Parameters:

query – [TODO: Add description]

Returns:

Add return description]

Return type:

[TODO

api_key: ClassVar[str]¶
base_url: ClassVar[str] = 'https://api.core.ac.uk/v3'¶
top_k_results: int = None¶
class prebuilt.scientific_paper_agent.models.DecisionMakingOutput(/, **data: Any)¶

Bases: pydantic.BaseModel

Output object of the decision making node.

answer: str | None = None¶
requires_research: bool = None¶
class prebuilt.scientific_paper_agent.models.JudgeOutput(/, **data: Any)¶

Bases: pydantic.BaseModel

Output object of the judge node.

feedback: str | None = None¶
is_good_answer: bool = None¶
class prebuilt.scientific_paper_agent.models.SearchPapersInput(/, **data: Any)¶

Bases: pydantic.BaseModel

Input object to search papers with the CORE API.

max_papers: int = None¶
query: str = None¶