mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
Silence ty deprecation diagnostics and drop stale sampling doc mentions
This commit is contained in:
parent
1a43a3b8e9
commit
90f2e190d0
6 changed files with 15 additions and 22 deletions
|
|
@ -23,7 +23,7 @@ async def _sample(
|
|||
answering a legacy server, so the stand-in server reaches the SDK session
|
||||
directly.
|
||||
"""
|
||||
result = await context.session.create_message(
|
||||
result = await context.session.create_message( # ty: ignore[deprecated]
|
||||
messages=messages,
|
||||
system_prompt=system_prompt,
|
||||
max_tokens=512,
|
||||
|
|
@ -72,7 +72,9 @@ def fastmcp_server():
|
|||
),
|
||||
SamplingMessage(
|
||||
role="assistant",
|
||||
content=TextContent(type="text", text="How can I assist you today?"),
|
||||
content=TextContent(
|
||||
type="text", text="How can I assist you today?"
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue