mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
* feat: add PromptResult as canonical internal type for prompts Applies the same pattern as ResourceContent to prompts. PromptResult wraps messages with description and meta. Public render() can return either list[PromptMessage] or PromptResult (backwards compatible), while private _render() always returns PromptResult. * docs: fix incorrect PromptResult return type in example * feat: add PromptResult canonical type with meta support * fix: address PR #2600 review comments Fixes test failures and code quality issues identified in PR review: - Update 3 tests in test_server_interactions.py to access PromptResult.messages[0] instead of indexing directly - Fix ProxyPromptManager to preserve meta field when converting GetPromptResult to PromptResult - Fix ProxyPrompt.render() to return PromptResult instead of deprecated list[PromptMessage], preventing fastmcp tags from leaking into runtime meta - Fix mask_error_details initialization to respect explicit False values - Fix exception re-raising to preserve tracebacks (use bare raise instead of raise e) - Update testing documentation to use pytest -n auto for parallel execution |
||
|---|---|---|
| .. | ||
| .cursor/rules | ||
| assets | ||
| clients | ||
| community | ||
| css | ||
| deployment | ||
| development | ||
| getting-started | ||
| integrations | ||
| patterns | ||
| public/schemas/fastmcp.json | ||
| python-sdk | ||
| servers | ||
| snippets | ||
| tutorials | ||
| .ccignore | ||
| changelog.mdx | ||
| docs.json | ||
| updates.mdx | ||