Skip to main content

feagi_api/common/
mod.rs

1// Copyright 2025 Neuraville Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4// Common types used across all transports
5
6pub mod agent_registration;
7pub mod error;
8pub mod request;
9pub mod response;
10pub mod types;
11pub use types::{ApiState, Json, Path, Query, State};
12
13pub use error::{ApiError, ApiErrorCode};
14pub use request::ApiRequest;
15pub use response::{ApiResponse, EmptyResponse};
16
17/// Result type for API operations
18pub type ApiResult<T> = Result<T, ApiError>;