Skip to main content

systemprompt_models/
lib.rs

1pub mod a2a;
2pub mod admin;
3pub mod agui;
4pub mod ai;
5pub mod api;
6pub mod artifacts;
7pub mod auth;
8pub mod bootstrap;
9pub mod config;
10pub mod content;
11pub mod content_config;
12pub mod errors;
13pub mod events;
14pub mod execution;
15pub mod extension;
16pub mod mcp;
17pub mod modules;
18pub mod oauth;
19pub mod paths;
20pub mod profile;
21pub mod profile_bootstrap;
22pub mod repository;
23pub mod routing;
24pub mod secrets;
25pub mod services;
26pub mod validators;
27
28pub use a2a::{
29    AgentAuthentication, AgentCapabilities, AgentCard, AgentCardBuilder, AgentCardSignature,
30    AgentExtension, AgentInterface, AgentProvider, AgentSkill, ApiKeyLocation,
31    Artifact as A2aArtifact, ArtifactMetadata, DataPart, FilePart, FileWithBytes,
32    McpServerMetadata, McpToolsParams, Message, MessageMetadata as A2aMessageMetadata,
33    MessageRole as A2aMessageRole, OAuth2Flow, OAuth2Flows, Part, SecurityScheme, Task,
34    TaskMetadata, TaskState, TaskStatus, TextPart, TransportProtocol,
35};
36pub use admin::{
37    ActivityTrend, AnalyticsData as AdminAnalyticsData, BotTrafficStats, BrowserBreakdown,
38    ContentStat, DeviceBreakdown, GeographicBreakdown, LogEntry as AdminLogEntry,
39    LogLevel as AdminLogLevel, RecentConversation, TrafficData as AdminTrafficData, UserInfo,
40    UserMetricsWithTrends,
41};
42pub use agui::{
43    AgUiEvent, AgUiEventBuilder, AgUiEventType, CustomPayload, GenericCustomPayload,
44    JsonPatchOperation, MessageRole as AgUiMessageRole, MessagesSnapshotPayload, RunErrorPayload,
45    RunFinishedPayload, RunStartedPayload, StateDeltaBuilder, StateDeltaPayload,
46    StateSnapshotPayload, StepFinishedPayload, StepStartedPayload, TextMessageContentPayload,
47    TextMessageEndPayload, TextMessageStartPayload, ToolCallArgsPayload, ToolCallEndPayload,
48    ToolCallResultPayload, ToolCallStartPayload,
49};
50pub use ai::{
51    is_supported_audio, is_supported_image, is_supported_media, is_supported_text,
52    is_supported_video, AiContentPart, AiMessage, AiProvider, AiRequest, AiRequestBuilder,
53    AiResponse, CallToolResult, DynAiProvider, McpTool, MessageRole, ModelConfig, ModelHint,
54    ModelPreferences, ProviderConfig, ResponseFormat, SamplingParams, SearchGroundedResponse,
55    StructuredOutputOptions, ToolCall, ToolExecution, ToolResultFormatter, SUPPORTED_AUDIO_TYPES,
56    SUPPORTED_IMAGE_TYPES, SUPPORTED_TEXT_TYPES, SUPPORTED_VIDEO_TYPES,
57};
58pub use api::{
59    AcceptedResponse, ApiError, ApiErrorExt, ApiQuery, ApiResponse, CheckoutEvent, CheckoutRequest,
60    CheckoutResponse, CloudApiError, CloudApiErrorDetail, CloudApiResponse, CloudCustomerInfo,
61    CloudListResponse, CloudLogEntry, CloudLogsResponse, CloudPlan, CloudPlanInfo,
62    CloudStatusResponse, CloudTenant, CloudTenantInfo, CloudTenantSecrets, CloudTenantStatus,
63    CloudTenantStatusResponse, CloudUserInfo, CollectionResponse, CreateContextRequest,
64    CreatedResponse, DeployResponse, DiscoveryResponse, ErrorCode, ErrorResponse,
65    ExternalDbAccessResponse, Link, ModuleInfo, PaginationInfo, PaginationParams,
66    ProvisioningEvent, ProvisioningEventType, RegistryToken, ResponseLinks, ResponseMeta,
67    SearchQuery, SetExternalDbAccessRequest, SetSecretsRequest, SingleResponse, SortOrder,
68    SortParams, SubscriptionStatus, SuccessResponse, UpdateContextRequest, UserContext,
69    UserContextWithStats, UserMeResponse, ValidationError,
70};
71pub use artifacts::{
72    Alignment, Artifact, ArtifactSchema, ArtifactType, AudioArtifact, AxisType, ChartArtifact,
73    ChartDataset, ChartType, Column, ColumnType, ExecutionMetadata, ImageArtifact,
74    SortOrder as ArtifactSortOrder, TableArtifact, TableHints, VideoArtifact,
75};
76pub use auth::{
77    AuthError, AuthenticatedUser, BaseRole, BaseRoles, GrantType, PkceMethod, ResponseType,
78    BEARER_PREFIX,
79};
80pub use config::{Config, PathNotConfiguredError};
81pub use content::{ContentLink, IngestionReport};
82pub use content_config::{
83    ArticleDefaults, Category, ContentConfigError, ContentConfigErrors, ContentConfigRaw,
84    ContentRouting, ContentSourceConfigRaw, IndexingConfig, Metadata, OrganizationData,
85    ParentRoute, SitemapConfig, SourceBranding, StructuredData,
86};
87pub use errors::{CoreError, RepositoryError, ServiceError};
88pub use events::{
89    A2AEvent, A2AEventBuilder, A2AEventType, AnalyticsEvent, AnalyticsEventBuilder, ContextEvent,
90    ContextSummary, SystemEvent, SystemEventBuilder, SystemEventType,
91};
92pub use execution::{
93    ExecutionStep, PlannedTool, RequestContext, StepContent, StepId, StepStatus, StepType,
94    TrackedStep,
95};
96pub use extension::{
97    BuildType, DiscoveredExtension, Extension, ExtensionManifest, ExtensionType, ManifestRole,
98};
99pub use mcp::{
100    Deployment, DeploymentConfig, DynMcpDeploymentProvider, DynMcpRegistry, DynMcpToolProvider,
101    McpAuthState, McpDeploymentProvider, McpProvider, McpRegistry, McpServerConfig, McpServerState,
102    McpToolProvider, OAuthRequirement, RegistryConfig, Settings, ERROR as MCP_ERROR,
103    RUNNING as MCP_RUNNING, STARTING as MCP_STARTING, STOPPED as MCP_STOPPED,
104};
105pub use modules::{
106    ApiConfig, ApiPaths, CliPaths, Module, ModuleDefinition, ModulePermission, ModuleSchema,
107    ModuleSeed, ModuleType, Modules, ServiceCategory,
108};
109pub use oauth::{OAuthClientConfig, OAuthServerConfig};
110pub use paths::{
111    cloud_container, dir_names, file_names, AppPaths, BuildPaths, PathError, SystemPaths, WebPaths,
112};
113pub use profile::{
114    CloudConfig, CloudValidationMode, DatabaseConfig as ProfileDatabaseConfig, Environment,
115    ExtensionsConfig, LogLevel, OutputFormat, PathsConfig, Profile, ProfileStyle, ProfileType,
116    RateLimitsConfig, RuntimeConfig, SecurityConfig, ServerConfig, SiteConfig,
117};
118pub use profile_bootstrap::{ProfileBootstrap, ProfileBootstrapError};
119pub use repository::{ServiceLifecycle, ServiceRecord, WhereClause};
120pub use routing::{ApiCategory, AssetType, RouteClassifier, RouteType};
121pub use secrets::{Secrets, SecretsBootstrap, SecretsBootstrapError};
122pub use services::{
123    AgentCardConfig, AgentConfig, AgentMetadataConfig, AgentProviderInfo, AiConfig,
124    AiProviderConfig, CapabilitiesConfig, HistoryConfig, IncludableString, JobConfig, McpConfig,
125    OAuthConfig as AgentOAuthConfig, PartialServicesConfig, RuntimeStatus, SamplingConfig,
126    SchedulerConfig, ServiceType, ServicesConfig, Settings as ServicesSettings, SkillConfig,
127    SkillsConfig, ToolModelConfig, ToolModelSettings, WebConfig,
128};
129pub use systemprompt_identifiers::{AgentId, ContextId, SessionId, TaskId, TraceId, UserId};
130
131pub use systemprompt_traits::{
132    StartupValidationError, StartupValidationReport, ValidationReport, ValidationWarning,
133};