fastmcp/tests
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
..
cli Remove enable_docket setting; Docket is now always on 2025-12-05 11:40:04 -05:00
client Add AnthropicSamplingHandler (#2617) 2025-12-14 16:07:22 -05:00
contrib feat: Add title, annotations and meta to mixin decorators 2025-10-10 14:23:02 +05:30
deprecated Remove deprecated mount/import argument order and separator params (#2582) 2025-12-09 13:58:51 -05:00
experimental Unify SamplingHandler and promote OpenAI handler (#2616) 2025-12-14 15:22:43 -05:00
integration_tests Improve rate limit detection for integration tests 2025-12-04 11:52:40 -05:00
prompts Revert "Refactor prompt behavior and add meta support (#2600)" (#2608) 2025-12-13 14:57:50 -05:00
resources Revert "Refactor resource behavior and add meta support (#2598)" (#2609) 2025-12-13 15:02:18 -05:00
server SEP-1577: Sampling with tools (#2551) 2025-12-14 13:51:05 -05:00
tools Add execution field to base Tool class 2025-12-08 17:07:49 -05:00
utilities Fix: Include signature modification in create_function_without_params (#2563) 2025-12-06 11:57:36 -05:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Use WindowsSelectorEventLoopPolicy to fix Windows test warnings (#2607) 2025-12-14 08:39:44 -05:00
test_mcp_config.py Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00