listPendingMessages method

Future<ListPendingMessagesResponse> listPendingMessages({
  1. required String agentSpaceId,
  2. required String executionId,
})

List pending messages for a specific execution.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter executionId : The unique identifier of the execution whose journal records to retrieve

Implementation

Future<ListPendingMessagesResponse> listPendingMessages({
  required String agentSpaceId,
  required String executionId,
}) async {
  final $payload = <String, dynamic>{
    'executionId': executionId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/agents/agent-space/${Uri.encodeComponent(agentSpaceId)}/pendingMessages',
    hostPrefix: 'dp.',
    exceptionFnMap: _exceptionFns,
  );
  return ListPendingMessagesResponse.fromJson(response);
}