MCPcopy
hub / github.com/openai/openai-agents-python / UserError

Class UserError

src/agents/exceptions.py:89–96  ·  view source on GitHub ↗

Exception raised when the user makes an error using the SDK.

Source from the content-addressed store, hash-verified

87
88
89class UserError(AgentsException):
90 """Exception raised when the user makes an error using the SDK."""
91
92 message: str
93
94 def __init__(self, message: str):
95 self.message = message
96 super().__init__(message)
97
98
99class MCPToolCancellationError(AgentsException):

Calls

no outgoing calls

Tested by 2

_user_error_toolFunction · 0.72
fake_openFunction · 0.72