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    AiContentPart, AiMessage, AiProvider, AiRequest, AiRequestBuilder, AiResponse, CallToolResult,
52    DynAiProvider, McpTool, MessageRole, ModelConfig, ModelHint, ModelPreferences, ProviderConfig,
53    ResponseFormat, SUPPORTED_AUDIO_TYPES, SUPPORTED_IMAGE_TYPES, SUPPORTED_TEXT_TYPES,
54    SUPPORTED_VIDEO_TYPES, SamplingParams, SearchGroundedResponse, StreamChunk,
55    StructuredOutputOptions, ToolCall, ToolExecution, ToolResultFormatter, is_supported_audio,
56    is_supported_image, is_supported_media, is_supported_text, is_supported_video,
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, CliArtifact, CliArtifactType, Column, ColumnType, CommandResultRaw,
74    ConversionError, ExecutionMetadata, ImageArtifact, RenderingHints,
75    SortOrder as ArtifactSortOrder, TableArtifact, TableHints, ToolResponse, VideoArtifact,
76};
77pub use auth::{
78    AuthError, AuthenticatedUser, BEARER_PREFIX, BaseRole, BaseRoles, GrantType, PkceMethod,
79    ResponseType,
80};
81pub use config::{Config, PathNotConfiguredError};
82pub use content::{ContentLink, IngestionReport};
83pub use content_config::{
84    ArticleDefaults, Category, ContentConfigError, ContentConfigErrors, ContentConfigRaw,
85    ContentRouting, ContentSourceConfigRaw, IndexingConfig, Metadata, OrganizationData,
86    ParentRoute, SitemapConfig, SourceBranding, StructuredData,
87};
88pub use errors::{CoreError, RepositoryError, ServiceError};
89pub use events::{
90    A2AEvent, A2AEventBuilder, A2AEventType, AnalyticsEvent, AnalyticsEventBuilder, ContextEvent,
91    ContextSummary, SystemEvent, SystemEventBuilder, SystemEventType,
92};
93pub use execution::{
94    ExecutionStep, PlannedTool, RequestContext, StepContent, StepId, StepStatus, StepType,
95    TrackedStep,
96};
97pub use extension::{
98    BuildType, DiscoveredExtension, Extension, ExtensionManifest, ExtensionType, ManifestRole,
99};
100pub use mcp::{
101    Deployment, DeploymentConfig, DynMcpDeploymentProvider, DynMcpRegistry, DynMcpToolProvider,
102    ERROR as MCP_ERROR, McpAuthState, McpDeploymentProvider, McpProvider, McpRegistry,
103    McpServerConfig, McpServerState, McpToolProvider, OAuthRequirement, RUNNING as MCP_RUNNING,
104    RegistryConfig, STARTING as MCP_STARTING, STOPPED as MCP_STOPPED, Settings,
105};
106pub use modules::{
107    ApiConfig, ApiPaths, CliPaths, Module, ModuleDefinition, ModulePermission, ModuleSchema,
108    ModuleSeed, ModuleType, Modules, ServiceCategory,
109};
110pub use oauth::{OAuthClientConfig, OAuthServerConfig};
111pub use paths::{
112    AppPaths, BuildPaths, PathError, StoragePaths, SystemPaths, WebPaths, cloud_container,
113    dir_names, file_names,
114};
115pub use profile::{
116    CloudConfig, CloudValidationMode, ContentNegotiationConfig,
117    DatabaseConfig as ProfileDatabaseConfig, Environment, ExtensionsConfig, LogLevel, OutputFormat,
118    PathsConfig, Profile, ProfileStyle, ProfileType, RateLimitsConfig, RuntimeConfig,
119    SecurityConfig, SecurityHeadersConfig, ServerConfig, SiteConfig,
120};
121pub use profile_bootstrap::{ProfileBootstrap, ProfileBootstrapError};
122pub use repository::{ServiceLifecycle, ServiceRecord, WhereClause};
123pub use routing::{ApiCategory, AssetType, RouteClassifier, RouteType};
124pub use secrets::{Secrets, SecretsBootstrap, SecretsBootstrapError};
125pub use services::{
126    AGENT_CONFIG_FILENAME, AgentCardConfig, AgentConfig, AgentMetadataConfig, AgentProviderInfo,
127    AiConfig, AiProviderConfig, CapabilitiesConfig, ComponentFilter, ComponentSource,
128    DEFAULT_AGENT_SYSTEM_PROMPT_FILE, DEFAULT_SKILL_CONTENT_FILE, DiskAgentConfig, DiskHookConfig,
129    DiskSkillConfig, HOOK_CONFIG_FILENAME, HistoryConfig, HookAction, HookCategory, HookEvent,
130    HookEventsConfig, HookMatcher, HookType, IncludableString, JobConfig, McpConfig,
131    OAuthConfig as AgentOAuthConfig, PartialServicesConfig, PluginAuthor, PluginComponentRef,
132    PluginConfig, PluginConfigFile, PluginScript, PluginVariableDef, RuntimeStatus,
133    SKILL_CONFIG_FILENAME, SamplingConfig, SchedulerConfig, ServiceType, ServicesConfig,
134    Settings as ServicesSettings, SkillConfig, SkillsConfig, ToolModelConfig, ToolModelSettings,
135    WebConfig, strip_frontmatter,
136};
137pub use systemprompt_identifiers::{AgentId, ContextId, SessionId, TaskId, TraceId, UserId};
138
139pub use systemprompt_provider_contracts::{
140    AnimationConfig, BrandingConfig as WebBrandingConfig, CardConfig, ColorsConfig, FontsConfig,
141    LayoutConfig, LogoConfig, MobileConfig, PathsConfig as WebPathsConfig, RadiusConfig,
142    ScriptConfig, ShadowsConfig, SpacingConfig, TouchTargetsConfig, TypographyConfig,
143    WebConfig as FullWebConfig, WebConfigError, ZIndexConfig,
144};
145pub use systemprompt_traits::{
146    StartupValidationError, StartupValidationReport, ValidationReport, ValidationWarning,
147};