use crate::{HttpClient, HttpError};
pub async fn list_prompts(
client: &HttpClient,
params: super::request::ListPromptsRequest,
) -> Result<super::response::ListPromptResponse, HttpError> {
client
.send_unary(reqwest::Method::POST, "functions/inventions/prompts/list", Some(params))
.await
}
pub async fn get_prompt(
client: &HttpClient,
params: super::request::GetPromptRequest,
) -> Result<super::response::GetPromptResponse, HttpError> {
client
.send_unary(reqwest::Method::POST, "functions/inventions/prompts", Some(params))
.await
}
pub async fn get_prompt_usage(
client: &HttpClient,
params: super::request::GetPromptRequest,
) -> Result<super::response::UsagePromptResponse, HttpError> {
client
.send_unary(reqwest::Method::POST, "functions/inventions/prompts/usage", Some(params))
.await
}