Skip to content

Commit a6d1164

Browse files
committed
fix(apis): import cycle errors
1 parent b5a1d7c commit a6d1164

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

agentle/agents/apis/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
from agentle.agents.apis.parameter_location import ParameterLocation
2323
from agentle.agents.apis.request_config import (
2424
CacheStrategy,
25-
CircuitBreaker,
26-
CircuitBreakerError,
27-
RateLimiter,
2825
RequestConfig,
29-
ResponseCache,
3026
RetryStrategy,
31-
RateLimitError,
3227
)
28+
from agentle.agents.apis.circuit_breaker import CircuitBreaker
29+
from agentle.agents.apis.rate_limiter import RateLimiter
30+
from agentle.agents.apis.response_cache import ResponseCache
31+
from agentle.agents.apis.circuit_breaker_error import CircuitBreakerError
32+
from agentle.agents.apis.rate_limit_error import RateLimitError
3333
from agentle.agents.apis.request_hook import RequestHook
3434
from agentle.agents.apis.object_schema import ObjectSchema
3535
from agentle.agents.apis.array_schema import ArraySchema

agentle/agents/apis/request_config.py

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,16 @@
1212
from rsb.models.field import Field
1313

1414
from agentle.agents.apis.cache_strategy import CacheStrategy
15-
from agentle.agents.apis.circuit_breaker import CircuitBreaker
16-
from agentle.agents.apis.circuit_breaker_error import CircuitBreakerError
17-
from agentle.agents.apis.rate_limiter import RateLimiter
18-
from agentle.agents.apis.rate_limit_error import RateLimitError
19-
from agentle.agents.apis.response_cache import ResponseCache
2015
from agentle.agents.apis.retry_strategy import RetryStrategy
2116

22-
# Re-export for backward compatibility
23-
__all__ = [
24-
"RequestConfig",
25-
"RetryStrategy",
26-
"CacheStrategy",
27-
"CircuitBreaker",
28-
"RateLimiter",
29-
"ResponseCache",
30-
"CircuitBreakerError",
31-
"RateLimitError",
32-
]
33-
3417

3518
class RequestConfig(BaseModel):
3619
"""
3720
Enhanced configuration for HTTP requests.
38-
21+
3922
This configuration can be set at both API-level and per-endpoint level.
4023
Endpoint-level configs override API-level configs.
41-
24+
4225
Example:
4326
```python
4427
# API-level config (applies to all endpoints)
@@ -47,7 +30,7 @@ class RequestConfig(BaseModel):
4730
max_retries=3,
4831
enable_caching=True
4932
)
50-
33+
5134
# Per-endpoint override
5235
endpoint_config = RequestConfig(
5336
timeout=60.0, # Override for this specific endpoint

0 commit comments

Comments
 (0)