Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type * as textract from "@distilled.cloud/aws/textract";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
/**
* Runtime binding for `textract:StartLendingAnalysis` — start an
* asynchronous lending-document analysis job (classifies pages and routes
* them to the right extraction model) for a document stored in S3. Poll
* the returned `JobId` with `GetLendingAnalysis` /
* `GetLendingAnalysisSummary`. The caller needs `s3:GetObject` on the
* input bucket.
*
* @binding
* @section Asynchronous Lending Analysis
* @example Start a Lending Analysis Job
* ```typescript
* // init
* const startLendingAnalysis = yield* AWS.Textract.StartLendingAnalysis();
*
* // runtime
* const { JobId } = yield* startLendingAnalysis({
* DocumentLocation: { S3Object: { Bucket: bucketName, Name: "loan.pdf" } },
* });
* ```
*/
export interface StartLendingAnalysis extends Binding.Service<
StartLendingAnalysis,
"AWS.Textract.StartLendingAnalysis",
() => Effect.Effect<
(
request: textract.StartLendingAnalysisRequest,
) => Effect.Effect<
textract.StartLendingAnalysisResponse,
textract.StartLendingAnalysisError
>
>
> {}
export const StartLendingAnalysis = Binding.Service<StartLendingAnalysis>(
"AWS.Textract.StartLendingAnalysis",
);