mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix(mcp): document mutable result fields
This commit is contained in:
parent
86a3ae7ad7
commit
c5619c94bf
2 changed files with 3 additions and 3 deletions
|
|
@ -246,11 +246,11 @@ _ListItem = TypeVar("_ListItem")
|
|||
|
||||
|
||||
class _LenientListPromptsResult(ListPromptsResult):
|
||||
prompts: list[Prompt] = Field(default_factory=list)
|
||||
prompts: list[Prompt] = Field(default_factory=list) # mutable-ok: MCP result model owns the decoded list
|
||||
|
||||
|
||||
class _LenientListResourcesResult(ListResourcesResult):
|
||||
resources: list[Resource] = Field(default_factory=list)
|
||||
resources: list[Resource] = Field(default_factory=list) # mutable-ok: MCP result model owns the decoded list
|
||||
|
||||
|
||||
async def _run_bounded_cleanup(operation: Callable[[], Awaitable[TSessionResult]], deadline: float) -> TSessionResult:
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ _DECODED_JSON: Final = TypeAdapter(object)
|
|||
|
||||
|
||||
class _LenientListToolsResult(ListToolsResult):
|
||||
tools: list[MCPTool] = Field(default_factory=list)
|
||||
tools: list[MCPTool] = Field(default_factory=list) # mutable-ok: MCP result model owns the decoded list
|
||||
|
||||
|
||||
########################################################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue