zai_rs/knowledge/
capacity.rs1use super::types::KnowledgeCapacityResponse;
2use crate::client::ZaiClient;
3
4#[derive(Default)]
9pub struct KnowledgeCapacityRequest;
10
11impl KnowledgeCapacityRequest {
12 pub fn new() -> Self {
14 Self
15 }
16
17 pub async fn send_via(
19 &self,
20 client: &ZaiClient,
21 ) -> crate::ZaiResult<KnowledgeCapacityResponse> {
22 let route = crate::client::routes::KNOWLEDGE_CAPACITY;
23 let url = client.endpoints().resolve_route(route, &[])?;
24 client
25 .send_empty::<KnowledgeCapacityResponse>(route.method(), url)
26 .await
27 }
28}