|
39 | 39 | from sqlalchemy.orm import Session |
40 | 40 |
|
41 | 41 | # First-Party |
| 42 | +from mcpgateway.common.models import Gateway as PydanticGateway |
| 43 | +from mcpgateway.common.models import TextContent |
| 44 | +from mcpgateway.common.models import Tool as PydanticTool |
| 45 | +from mcpgateway.common.models import ToolResult |
42 | 46 | from mcpgateway.config import settings |
43 | 47 | from mcpgateway.db import A2AAgent as DbA2AAgent |
44 | 48 | from mcpgateway.db import EmailTeam |
45 | 49 | from mcpgateway.db import Gateway as DbGateway |
46 | 50 | from mcpgateway.db import server_tool_association |
47 | 51 | from mcpgateway.db import Tool as DbTool |
48 | 52 | from mcpgateway.db import ToolMetric |
49 | | -from mcpgateway.common.models import Gateway as PydanticGateway |
50 | | -from mcpgateway.common.models import TextContent |
51 | | -from mcpgateway.common.models import Tool as PydanticTool |
52 | | -from mcpgateway.common.models import ToolResult |
53 | 53 | from mcpgateway.observability import create_span |
54 | 54 | from mcpgateway.plugins.framework import GlobalContext, HttpHeaderPayload, PluginError, PluginManager, PluginViolationError, ToolHookType, ToolPostInvokePayload, ToolPreInvokePayload |
55 | 55 | from mcpgateway.plugins.framework.constants import GATEWAY_METADATA, TOOL_METADATA |
@@ -446,7 +446,7 @@ def _extract_and_validate_structured_content(self, tool: DbTool, tool_result: "T |
446 | 446 |
|
447 | 447 | Examples: |
448 | 448 | >>> from mcpgateway.services.tool_service import ToolService |
449 | | - >>> from mcpgateway.models import TextContent, ToolResult |
| 449 | + >>> from mcpgateway.common.models import TextContent, ToolResult |
450 | 450 | >>> import json |
451 | 451 | >>> service = ToolService() |
452 | 452 | >>> # No schema declared -> nothing to validate |
|
0 commit comments