type DecisionAnswer = {
  type: "predicate";
  probability: number;
} | {
  type: "choice";
  choice: string;
  confidence: number;
  probabilities: {
    value: string;
    probability: number;
  }[];
} | {
  type: "score" | "refusal";
};
export type DecisionQuestions = Record<string, {
  type: "predicate";
  instructions: string;
} | {
  type: "choice";
  instructions: string;
  choices: Record<string, string>;
}>;
/** The part of `OpenAIDecisions` from `@langchain/openai` these middleware use. */
export interface OpenAIDecisionsLike {
  invoke(request: {
    input: never;
    questions: DecisionQuestions;
  }, config?: {
    signal?: AbortSignal;
  }): Promise<{
    answers: Record<string, DecisionAnswer>;
  }>;
}
export {};
//# sourceMappingURL=decisions.d.cts.map