update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
|
||||
class MCPTool(BaseModel):
|
||||
@@ -14,9 +14,10 @@ class MCPTool(BaseModel):
|
||||
..., alias="inputSchema", description="JSON Schema for tool input"
|
||||
)
|
||||
|
||||
class Config:
|
||||
populate_by_name = True
|
||||
by_alias = True
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
serialize_by_alias=True,
|
||||
)
|
||||
|
||||
|
||||
class MCPToolCallRequest(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user