@lelemondev/sdk - v0.9.9
    Preparing search index...

    Function createObserve

    • Create a scoped observe function with preset context

      Parameters

      Returns <T>(client: T, options?: ObserveOptions) => T

      const observeWithSession = createObserve({
      sessionId: 'session-123',
      userId: 'user-456',
      });

      const openai = observeWithSession(new OpenAI());