body: await parseBody()

in clients/client-bedrock-agent-runtime/src/protocols/Aws_restJson1.ts [2027:2104]


    body: await parseBody(output.body, context),
  };
  return de_DependencyFailedExceptionRes(parsedOutput, context);
};
const de_FilePart_event = async (output: any, context: __SerdeContext): Promise<FilePart> => {
  const contents: FilePart = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_FilePart(data, context));
  return contents;
};
const de_FlowCompletionEvent_event = async (output: any, context: __SerdeContext): Promise<FlowCompletionEvent> => {
  const contents: FlowCompletionEvent = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, _json(data));
  return contents;
};
const de_FlowMultiTurnInputRequestEvent_event = async (
  output: any,
  context: __SerdeContext
): Promise<FlowMultiTurnInputRequestEvent> => {
  const contents: FlowMultiTurnInputRequestEvent = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_FlowMultiTurnInputRequestEvent(data, context));
  return contents;
};
const de_FlowOutputEvent_event = async (output: any, context: __SerdeContext): Promise<FlowOutputEvent> => {
  const contents: FlowOutputEvent = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_FlowOutputEvent(data, context));
  return contents;
};
const de_FlowTraceEvent_event = async (output: any, context: __SerdeContext): Promise<FlowTraceEvent> => {
  const contents: FlowTraceEvent = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_FlowTraceEvent(data, context));
  return contents;
};
const de_GuardrailEvent_event = async (output: any, context: __SerdeContext): Promise<GuardrailEvent> => {
  const contents: GuardrailEvent = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, _json(data));
  return contents;
};
const de_InlineAgentFilePart_event = async (output: any, context: __SerdeContext): Promise<InlineAgentFilePart> => {
  const contents: InlineAgentFilePart = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_InlineAgentFilePart(data, context));
  return contents;
};
const de_InlineAgentPayloadPart_event = async (
  output: any,
  context: __SerdeContext
): Promise<InlineAgentPayloadPart> => {
  const contents: InlineAgentPayloadPart = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_InlineAgentPayloadPart(data, context));
  return contents;
};
const de_InlineAgentReturnControlPayload_event = async (
  output: any,
  context: __SerdeContext
): Promise<InlineAgentReturnControlPayload> => {
  const contents: InlineAgentReturnControlPayload = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, _json(data));
  return contents;
};
const de_InlineAgentTracePart_event = async (output: any, context: __SerdeContext): Promise<InlineAgentTracePart> => {
  const contents: InlineAgentTracePart = {} as any;
  const data: any = await parseBody(output.body, context);
  Object.assign(contents, de_InlineAgentTracePart(data, context));
  return contents;
};
const de_InternalServerException_event = async (
  output: any,
  context: __SerdeContext
): Promise<InternalServerException> => {
  const parsedOutput: any = {