File tree Expand file tree Collapse file tree 2 files changed +8
-25
lines changed Expand file tree Collapse file tree 2 files changed +8
-25
lines changed Original file line number Diff line number Diff line change 2222from agentle .agents .apis .parameter_location import ParameterLocation
2323from 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
3333from agentle .agents .apis .request_hook import RequestHook
3434from agentle .agents .apis .object_schema import ObjectSchema
3535from agentle .agents .apis .array_schema import ArraySchema
Original file line number Diff line number Diff line change 1212from rsb .models .field import Field
1313
1414from 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
2015from 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
3518class 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
You can’t perform that action at this time.
0 commit comments