Example
The following agent will search Pubmed for articles related to “ulcerative colitis”.cookbook/tools/pubmed.py
Toolkit Params
| Parameter | Type | Default | Description | 
|---|---|---|---|
| email | str | "your_email@example.com" | Specifies the email address to use. | 
| max_results | int | None | Optional parameter to specify the maximum number of results to return. | 
Toolkit Functions
| Function | Description | 
|---|---|
| search_pubmed | Searches PubMed for articles based on a specified query. Parameters include queryfor the search term andmax_resultsfor the maximum number of results to return (default is 10). Returns a JSON string containing the search results, including publication date, title, and summary. |