mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Keep historical mcp.types import in v2/v3 migration examples
This commit is contained in:
parent
e32a2098f9
commit
10af989563
2 changed files with 2 additions and 2 deletions
|
|
@ -1426,7 +1426,7 @@ Prompt functions now use `Message` instead of `mcp.types.PromptMessage`:
|
|||
|
||||
```python
|
||||
# v2.x
|
||||
from mcp_types import PromptMessage, TextContent
|
||||
from mcp.types import PromptMessage, TextContent
|
||||
|
||||
@mcp.prompt
|
||||
def my_prompt() -> PromptMessage:
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ Prompt functions now use FastMCP's `Message` class instead of `mcp.types.PromptM
|
|||
|
||||
```python
|
||||
# Before
|
||||
from mcp_types import PromptMessage, TextContent
|
||||
from mcp.types import PromptMessage, TextContent
|
||||
|
||||
@mcp.prompt
|
||||
def my_prompt() -> PromptMessage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue