import { Context, Effect } from "effect"
import { Item } from "../schema"
import { AiError } from "./error"
export interface AiService {
readonly analyzeImageForLineItems: (
imageData: Uint8Array,
) => Effect.Effect<readonly Item[], AiError> // custom E, no R
}
export const AiService = Context.GenericTag<AiService>("AiService")
import { Context, Effect } from "effect"
import { Item } from "../schema"
import { AiError } from "./error"
export interface AiService {
readonly analyzeImageForLineItems: (
imageData: Uint8Array,
) => Effect.Effect<readonly Item[], AiError> // custom E, no R
}
export const AiService = Context.GenericTag<AiService>("AiService")