Coverage for agentos/models/__init___20260705_134105_910.py: 0%
5 statements
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-06 21:19 +0800
« prev ^ index » next coverage.py v7.14.3, created at 2026-07-06 21:19 +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.agent import (
13 AgentInfo,
14 AgentListResponse,
15 AgentRunRequest,
16 AgentRunResponse,
17 AgentStatus,
18)
19from agentos.models.error import (
20 AgentOSError,
21 AuthenticationError,
22 AuthorizationError,
23 ErrorCode,
24 InternalError,
25 NotFoundError,
26 RateLimitError,
27 ServiceUnavailableError,
28 ValidationError,
29)
30from agentos.models.response import (
31 APIErrorDetail,
32 APIResponse,
33 APIResponseMeta,
34 HealthComponent,
35 HealthResponse,
36 PaginatedResponse,
37 PaginationMeta,
38 VersionResponse,
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]