From a686c55bb1b83ca0228ccecd436a36168b730c5b Mon Sep 17 00:00:00 2001 From: GermanVor Date: Mon, 16 Dec 2024 16:52:07 +0100 Subject: [PATCH] chore: extra runWithSdk --- clients/ai-assistants-v1/sdk/runSdk.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/clients/ai-assistants-v1/sdk/runSdk.ts b/clients/ai-assistants-v1/sdk/runSdk.ts index 54b6be96..2e326aa4 100644 --- a/clients/ai-assistants-v1/sdk/runSdk.ts +++ b/clients/ai-assistants-v1/sdk/runSdk.ts @@ -25,22 +25,6 @@ export type ListenRunProps = TypeFromProtoc; type RunClientType = Client; -export const runWithSdk = >( - session: SessionArg, - run: T, - { - runSdk = initRunSdk(session), - }: { - runSdk?: RunSdk; - }, -) => { - const listen = (params: Omit, args?: ClientCallArgs & CallOptions) => { - return runSdk.listen({ ...params, runId: run.id }, args); - }; - - return Object.assign(run, { listen }); -}; - export class RunWithSdk { private runSdk: RunSdk; private run: Run;