use crate::ctx;
use futures::Stream;
use std::sync::Arc;
#[async_trait::async_trait]
pub trait Client<CTXEXT> {
async fn create_unary<PC: crate::ctx::persistent_cache::PersistentCacheClient>(
&self,
ctx: ctx::Context<CTXEXT, PC>,
request: Arc<objectiveai_sdk::functions::profiles::computations::request::FunctionProfileComputationCreateParams>,
) -> Result<
objectiveai_sdk::functions::profiles::computations::response::unary::FunctionProfileComputation,
objectiveai_sdk::error::ResponseError,
>;
async fn create_streaming<PC: crate::ctx::persistent_cache::PersistentCacheClient>(
&self,
ctx: ctx::Context<CTXEXT, PC>,
request: Arc<objectiveai_sdk::functions::profiles::computations::request::FunctionProfileComputationCreateParams>,
) -> Result<
impl Stream<Item = Result<
objectiveai_sdk::functions::profiles::computations::response::streaming::FunctionProfileComputationChunk,
objectiveai_sdk::error::ResponseError,
>>
+ Send
+ 'static,
objectiveai_sdk::error::ResponseError,
>;
}