Coverage for agentos/models/__init___20260705_134105_910.py: 0%
5 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-05 20:52 +0800
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-05 20:52 +0800
1"""AgentOS Models — centralized Pydantic response/request/error/pagination models.
3Provides type-safe, OpenAPI-compatible data models shared across the API layer,
4client SDK, and internal components. All models follow REST best practices with
5RFC 9457 Problem Details for errors.
7v1.0: Response envelope, pagination, error model, health model.
8"""
10from __future__ import annotations
12from agentos.models.response import (
13 APIResponse,
14 APIResponseMeta,
15 APIErrorDetail,
16 PaginationMeta,
17 PaginatedResponse,
18 HealthResponse,
19 HealthComponent,
20 VersionResponse,
21)
22from agentos.models.error import (
23 ErrorCode,
24 AgentOSError,
25 ValidationError,
26 NotFoundError,
27 AuthenticationError,
28 AuthorizationError,
29 RateLimitError,
30 InternalError,
31 ServiceUnavailableError,
32)
33from agentos.models.agent import (
34 AgentRunRequest,
35 AgentRunResponse,
36 AgentStatus,
37 AgentInfo,
38 AgentListResponse,
39)
41__all__ = [
42 # Response
43 "APIResponse",
44 "APIResponseMeta",
45 "APIErrorDetail",
46 "PaginationMeta",
47 "PaginatedResponse",
48 "HealthResponse",
49 "HealthComponent",
50 "VersionResponse",
51 # Error
52 "ErrorCode",
53 "AgentOSError",
54 "ValidationError",
55 "NotFoundError",
56 "AuthenticationError",
57 "AuthorizationError",
58 "RateLimitError",
59 "InternalError",
60 "ServiceUnavailableError",
61 # Agent
62 "AgentRunRequest",
63 "AgentRunResponse",
64 "AgentStatus",
65 "AgentInfo",
66 "AgentListResponse",
67]