objectiveai_api/functions/retrieval_client/
client.rs1use crate::ctx;
4
5#[async_trait::async_trait]
7pub trait Client<CTXEXT> {
8 async fn list_functions(
10 &self,
11 ctx: ctx::Context<CTXEXT>,
12 ) -> Result<
13 objectiveai::functions::response::ListFunction,
14 objectiveai::error::ResponseError,
15 >;
16
17 async fn get_function_usage(
19 &self,
20 ctx: ctx::Context<CTXEXT>,
21 owner: &str,
22 repository: &str,
23 commit: Option<&str>,
24 ) -> Result<
25 objectiveai::functions::response::UsageFunction,
26 objectiveai::error::ResponseError,
27 >;
28}