1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
"""Agentux-specific error types."""
from __future__ import annotations
class AgentuxError(Exception):
"""Base exception for all Agentux errors."""
pass
# Alias for backward compatibility with existing tests
ConfigurationError = AgentuxError
class ConfigError(AgentuxError):
"""Configuration-related errors."""
pass
class MCPConfigError(AgentuxError):
"""MCP configuration errors."""
pass
class MCPError(AgentuxError):
"""MCP runtime errors."""
pass
class MCPProtocolError(MCPError):
"""MCP protocol errors."""
pass
class MarketplaceError(AgentuxError):
"""Marketplace-related errors."""
pass
class ToolNotFoundError(AgentuxError):
"""Raised when a requested tool is not found."""
pass
class MalformedResponseError(AgentuxError):
"""Raised when a provider returns a malformed response."""
pass
class MaxStepsError(AgentuxError):
"""Raised when the agent exceeds the maximum number of steps."""
pass
class UnsupportedToolCallingError(AgentuxError):
"""Raised when the provider doesn't support tool calling."""
pass
class AuthenticationError(AgentuxError):
"""Raised when authentication fails with a provider."""
pass
class ModelNotFoundError(AgentuxError):
"""Raised when a requested model is not available."""
pass
class NetworkError(AgentuxError):
"""Raised when network communication fails."""
pass
class ProviderError(AgentuxError):
"""Base exception for provider-related errors."""
pass
class RateLimitError(AgentuxError):
"""Raised when a provider rate limits the request."""
pass
class ToolError(AgentuxError):
"""Base exception for tool-related errors."""
pass
class SafetyError(AgentuxError):
"""Raised when a safety check fails."""
pass
class UserAbort(AgentuxError):
"""Raised when the user aborts an operation."""
pass
__all__ = [
"AgentuxError",
"ConfigurationError",
"ConfigError",
"MCPConfigError",
"MCPError",
"MCPProtocolError",
"MarketplaceError",
"ToolNotFoundError",
"MalformedResponseError",
"MaxStepsError",
"UnsupportedToolCallingError",
"AuthenticationError",
"ModelNotFoundError",
"NetworkError",
"ProviderError",
"RateLimitError",
"ToolError",
"SafetyError",
"UserAbort",
]
|