Coverage for agentos/models/__init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-07-02 09:59 +0800

1"""AgentOS v1.2.8 — Models module.""" 

2 

3from agentos.models.router import ModelRouter 

4from agentos.models.resilience import ( 

5 CancellationSource, 

6 CancelledError, 

7 RetryConfig, 

8 CircuitBreaker, 

9 CircuitBreakerConfig, 

10 ResilienceConfig, 

11 ResilientCall, 

12 retry_with_backoff, 

13 with_timeout, 

14 with_fallback, 

15) 

16from agentos.models.routing_strategy import ( 

17 RoutingStrategy, 

18 Complexity, 

19 Budget, 

20) 

21 

22__all__ = [ 

23 "ModelRouter", 

24 "CancellationSource", 

25 "CancelledError", 

26 "RetryConfig", 

27 "CircuitBreaker", 

28 "CircuitBreakerConfig", 

29 "ResilienceConfig", 

30 "ResilientCall", 

31 "retry_with_backoff", 

32 "with_timeout", 

33 "with_fallback", 

34 "RoutingStrategy", 

35 "Complexity", 

36 "Budget", 

37]