Query results
This tool is used to display the table of studies.
NoPapersFoundError
Bases: Exception
Exception raised when no papers are found in the state.
Source code in aiagents4pharma/talk2scholars/tools/s2/query_results.py
19 20 |
|
query_results(question, state)
Query the last displayed papers from the state. If no papers are found, raises an exception.
Use this also to get the last displayed papers from the state, and then use the papers to get recommendations for a single paper or multiple papers.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
question
|
str
|
The question to ask the agent. |
required |
state
|
dict
|
The state of the agent containing the papers. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
A message with the last displayed papers. |
Source code in aiagents4pharma/talk2scholars/tools/s2/query_results.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|