Skip to content

Commit 5fb966c

Browse files
committed
fixup! fix(3298): add try catch logic in MCP tool call to mimic Function Tool Call
1 parent b451460 commit 5fb966c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydantic_ai_slim/pydantic_ai/durable_exec/temporal/_mcp_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dataclasses import dataclass
55
from typing import Annotated, Any, Literal
66

7-
from pydantic import ConfigDict, Discriminator, with_config,
7+
from pydantic import ConfigDict, Discriminator, with_config
88
from temporalio import activity, workflow
99
from temporalio.workflow import ActivityConfig
1010
from typing_extensions import Self
@@ -32,6 +32,7 @@ class _CallToolParams:
3232
serialized_run_context: Any
3333
tool_def: ToolDefinition
3434

35+
3536
@dataclass
3637
class _ApprovalRequired:
3738
kind: Literal['approval_required'] = 'approval_required'

0 commit comments

Comments
 (0)