use crate::{HttpClient, HttpError};
pub async fn list_agents(
client: &HttpClient,
params: super::request::ListAgentsRequest,
) -> Result<super::response::ListAgentResponse, HttpError> {
client
.send_unary(reqwest::Method::POST, "agents/list", Some(params))
.await
}
pub async fn get_agent(
client: &HttpClient,
params: super::request::GetAgentRequest,
) -> Result<super::response::GetAgentResponse, HttpError> {
client
.send_unary(reqwest::Method::POST, "agents", Some(params))
.await
}
pub async fn get_agent_usage(
client: &HttpClient,
params: super::request::GetAgentRequest,
) -> Result<super::response::UsageAgentResponse, HttpError> {
client
.send_unary(reqwest::Method::POST, "agents/usage", Some(params))
.await
}