fieldnotesai
    Preparing search index...
    • Fetches session blocks for a given case and utilizes Azure OpenAI to extract a concise summary containing key issues, next steps, and client emotional state.

      Parameters

      • caseId: string

        The ID of the case.

      Returns Promise<
          {
              data?: Pick<
                  IntakeFormData,
                  "key_issues"
                  | "next_steps"
                  | "client_emotional_state",
              >;
              error?: string;
              success: boolean;
          },
      >

      A promise that resolves to an object containing the success status, summary data (key_issues, next_steps, client_emotional_state), and any error message.