fastmcp/docs/clients
Jeremiah Lowin c91c43e280
Add AnthropicSamplingHandler (#2617)
* Add AnthropicSamplingHandler

Adds a sampling handler for the Anthropic API at
fastmcp.client.sampling.handlers.anthropic, alongside the existing
OpenAI handler. Includes full support for tool calling.

Install with: pip install fastmcp[anthropic]

* Update default model

* Update sampling docs to cover both OpenAI and Anthropic handlers

* Use AsyncAnthropic, fix falsy value handling, handle tool_choice none

* Propagate isError to Anthropic, join multiple text blocks, fix docs
2025-12-14 16:07:22 -05:00
..
auth Add maturity warnings for py-key-value backends 2025-10-29 21:43:31 +00:00
client.mdx Add manual initialization control to Client (#2355) 2025-11-03 16:01:30 -05:00
elicitation.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
logging.mdx docs(client/logging): reflect corrected default log level mapping (#1403) 2025-08-08 11:49:58 -04:00
messages.mdx Fix version badge for messages 2025-06-26 09:40:49 -04:00
progress.mdx Clean up parameter documentation 2025-06-22 20:59:53 -04:00
prompts.mdx Add _fastmcp meta namespace (#1290) 2025-07-29 15:07:53 -04:00
resources.mdx Add _fastmcp meta namespace (#1290) 2025-07-29 15:07:53 -04:00
roots.mdx Update docs 2025-06-22 13:34:36 -04:00
sampling.mdx Add AnthropicSamplingHandler (#2617) 2025-12-14 16:07:22 -05:00
tasks.mdx Rewrite background tasks documentation (#2567) 2025-12-06 19:28:14 -05:00
tools.mdx Document client meta parameter for sending ancillary request data (#2367) 2025-11-04 11:32:31 -05:00
transports.mdx Add UV Transport (#1270) 2025-07-28 15:41:36 -04:00