> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pubmed

**PubmedTools** enable an Agent to search for Pubmed for articles.

## Example

The following agent will search Pubmed for articles related to "ulcerative colitis".

```python cookbook/tools/pubmed.py theme={null}
from phi.agent import Agent
from phi.tools.pubmed import PubmedTools

agent = Agent(tools=[PubmedTools()], show_tool_calls=True)
agent.print_response("Tell me about ulcerative colitis.")
```

## 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 `query` for the search term and `max_results` for the maximum number of results to return (default is 10). Returns a JSON string containing the search results, including publication date, title, and summary. |

## Information

* View on [Github](https://github.com/agno-agi/phidata/blob/main/phi/tools/pubmed.py)
