Skip to main content

Crate systemprompt_client

Crate systemprompt_client 

Source
Expand description

HTTP API client for systemprompt.io deployments.

SystempromptClient wraps a pre-configured reqwest::Client and a small set of typed methods for the routes documented in systemprompt-models::ApiPaths. RemoteCliExecutor streams remote CLI command output over server-sent events into a caller-supplied OutputSink. All errors flow through the ClientError enum.

§Feature flags

This crate has no feature flags. [package.metadata.docs.rs] all-features is set so future additions render on docs.rs without further changes.

§Example

use systemprompt_client::SystempromptClient;

let client = SystempromptClient::new("https://api.example.com")?;
let healthy = client.check_health().await;
assert!(healthy);

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

RemoteCliExecutor
RemoteCliRequest
SystempromptClient

Enums§

ClientError

Traits§

OutputSink

Type Aliases§

ClientResult