Summarize (pydantic-ai structured output + sampling)
summarizeGenerate a structured summary from any text to get a concise, organized overview.
Instructions
A pydantic-ai agent returns a structured Summary; the LLM comes from the client via MCP sampling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | A short paragraph, 2-4 sentences | |
| headline | Yes | A single sentence capturing the gist | |
| key_points | Yes | Three to five bullet takeaways |