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 b2bi from "@distilled.cloud/aws/b2bi";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
/**
* Runtime binding for `b2bi:GenerateMapping`.
*
* Generates a mapping template (JSONATA or XSLT) from a sample input and
* desired output document using AI-assisted mapping — useful for building
* self-service EDI onboarding flows where trading partners supply sample
* documents. `mappingAccuracy` reports the model's confidence. Provide the
* implementation with `Effect.provide(AWS.B2BI.GenerateMappingHttp)`.
* @binding
* @section Generating Mappings
* @example Generate a JSONATA Template from Samples
* ```typescript
* // init — account-level, no resource argument
* const generateMapping = yield* AWS.B2BI.GenerateMapping();
*
* // runtime
* const result = yield* generateMapping({
* inputFileContent: JSON.stringify({ customer: "acme" }),
* outputFileContent: JSON.stringify({ name: "acme" }),
* mappingType: "JSONATA",
* });
* // result.mappingTemplate, result.mappingAccuracy
* ```
*/
export interface GenerateMapping extends Binding.Service<
GenerateMapping,
"AWS.B2BI.GenerateMapping",
() => Effect.Effect<
(
request: b2bi.GenerateMappingRequest,
) => Effect.Effect<b2bi.GenerateMappingResponse, b2bi.GenerateMappingError>
>
> {}
export const GenerateMapping = Binding.Service<GenerateMapping>(
"AWS.B2BI.GenerateMapping",
);