fastmcp/tests/server/sampling
claude[bot] af786cef46 Add max_sampling_rounds parameter to sample() method
Add configurable max_sampling_rounds parameter to ctx.sample() to allow
users to control the maximum number of tool-calling iterations (defaults
to 100). This prevents infinite loops if the LLM repeatedly calls tools
without converging on a final response.

Co-authored-by: Bill Easton <strawgate@users.noreply.github.com>
2026-01-29 01:45:27 +00:00
..
__init__.py SEP-1577: Sampling with tools (#2551) 2025-12-14 13:51:05 -05:00
test_max_sampling_rounds.py Add max_sampling_rounds parameter to sample() method 2026-01-29 01:45:27 +00:00
test_sampling_tool.py SEP-1577: Sampling with tools (#2551) 2025-12-14 13:51:05 -05:00