pub struct Api {
pub skills: SkillsApi,
pub executions: ExecutionsApi,
pub search: SearchApi,
pub config: ConfigApi,
pub services: ServicesApi,
pub agent: AgentApi,
pub feedback: FeedbackApi,
pub analytics: AnalyticsApi,
}Expand description
Unified API facade providing access to all API endpoints
Fields§
§skills: SkillsApiSkills API operations
executions: ExecutionsApiExecution API operations
search: SearchApiSearch API operations
config: ConfigApiConfiguration API operations
services: ServicesApiSystem services API operations
agent: AgentApiAgent configuration API operations
feedback: FeedbackApiFeedback API operations
analytics: AnalyticsApiAnalytics API operations
Implementations§
Source§impl Api
impl Api
Sourcepub fn with_base_url(base_url: impl Into<String>) -> Self
pub fn with_base_url(base_url: impl Into<String>) -> Self
Create an API facade with a custom base URL
Sourcepub fn with_host(host: &str, port: u16) -> Self
pub fn with_host(host: &str, port: u16) -> Self
Create an API facade with a specific host and port
Sourcepub fn with_client(client: ApiClient) -> Self
pub fn with_client(client: ApiClient) -> Self
Create an API facade with an existing client
Sourcepub async fn is_available(&self) -> bool
pub async fn is_available(&self) -> bool
Check if the API server is reachable and healthy
Sourcepub async fn server_version(&self) -> ApiResult<String>
pub async fn server_version(&self) -> ApiResult<String>
Get version information from the server
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl !Send for Api
impl !Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.