55 lines
3.2 KiB
TypeScript
55 lines
3.2 KiB
TypeScript
import type { RunAssistantAddressLaneResponseRuntimeInput } from "./assistantAddressLaneResponseRuntimeAdapter";
|
|
|
|
export interface BuildAssistantAddressLaneResponseRuntimeInputInput<ResponseType = unknown> {
|
|
sessionId: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["sessionId"];
|
|
userMessage: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["userMessage"];
|
|
effectiveAddressUserMessage:
|
|
RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["effectiveAddressUserMessage"];
|
|
addressLane: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["addressLane"];
|
|
carryoverMeta?: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["carryoverMeta"];
|
|
llmPreDecomposeMeta?: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["llmPreDecomposeMeta"];
|
|
knownOrganizations: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["knownOrganizations"];
|
|
activeOrganization: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["activeOrganization"];
|
|
sanitizeOutgoingAssistantText:
|
|
RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["sanitizeOutgoingAssistantText"];
|
|
buildAddressDebugPayload:
|
|
RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["buildAddressDebugPayload"];
|
|
buildAddressFollowupOffer:
|
|
RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["buildAddressFollowupOffer"];
|
|
mergeKnownOrganizations:
|
|
RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["mergeKnownOrganizations"];
|
|
toNonEmptyString: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["toNonEmptyString"];
|
|
appendItem: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["appendItem"];
|
|
getSession: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["getSession"];
|
|
persistSession: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["persistSession"];
|
|
cloneConversation: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["cloneConversation"];
|
|
logEvent: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["logEvent"];
|
|
messageIdFactory: RunAssistantAddressLaneResponseRuntimeInput<ResponseType>["messageIdFactory"];
|
|
}
|
|
|
|
export function buildAssistantAddressLaneResponseRuntimeInput<ResponseType = unknown>(
|
|
input: BuildAssistantAddressLaneResponseRuntimeInputInput<ResponseType>
|
|
): RunAssistantAddressLaneResponseRuntimeInput<ResponseType> {
|
|
return {
|
|
sessionId: input.sessionId,
|
|
userMessage: input.userMessage,
|
|
effectiveAddressUserMessage: input.effectiveAddressUserMessage,
|
|
addressLane: input.addressLane,
|
|
carryoverMeta: input.carryoverMeta,
|
|
llmPreDecomposeMeta: input.llmPreDecomposeMeta,
|
|
knownOrganizations: input.knownOrganizations,
|
|
activeOrganization: input.activeOrganization,
|
|
sanitizeOutgoingAssistantText: input.sanitizeOutgoingAssistantText,
|
|
buildAddressDebugPayload: input.buildAddressDebugPayload,
|
|
buildAddressFollowupOffer: input.buildAddressFollowupOffer,
|
|
mergeKnownOrganizations: input.mergeKnownOrganizations,
|
|
toNonEmptyString: input.toNonEmptyString,
|
|
appendItem: input.appendItem,
|
|
getSession: input.getSession,
|
|
persistSession: input.persistSession,
|
|
cloneConversation: input.cloneConversation,
|
|
logEvent: input.logEvent,
|
|
messageIdFactory: input.messageIdFactory
|
|
};
|
|
}
|