send_message
async
¶
send_message(
assistant_id: UuidOrArn,
session_id: UuidOrArn,
type: MessageType,
message: MessageInput,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
ai_agent_id: Optional[UuidOrArnOrEitherWithQualifier] = None,
conversation_context: Optional[ConversationContext] = None,
configuration: Optional[MessageConfiguration] = None,
client_token: Optional[ClientToken] = None,
orchestrator_use_case: Optional[NonEmptyString] = None,
metadata: Optional[MessageMetadata] = None,
origin_request_id: Optional[NonEmptyString] = None,
) -> SendMessageResponse
Submits a message to the Amazon Q in Connect session.
Parameters:
-
assistant_id(UuidOrArn) –The identifier of the Amazon Q in Connect assistant.
-
session_id(UuidOrArn) –The identifier of the Amazon Q in Connect session.
-
type(MessageType) –The message type.
-
message(MessageInput) –The message data to submit to the Amazon Q in Connect session.
-
ai_agent_id(Optional[UuidOrArnOrEitherWithQualifier], default:None) –The identifier of the AI Agent to use for processing the message.
-
conversation_context(Optional[ConversationContext], default:None) –The conversation context before the Amazon Q in Connect session.
-
configuration(Optional[MessageConfiguration], default:None) –The configuration of the SendMessage request.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field.For more information about idempotency, see Making retries safe with idempotent APIs.
-
orchestrator_use_case(Optional[NonEmptyString], default:None) –The orchestrator use case for message processing.
-
metadata(Optional[MessageMetadata], default:None) –Additional metadata for the message.
-
origin_request_id(Optional[NonEmptyString], default:None) –Request identifier from the origin system, used for end-to-end tracing across spans.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
DependencyFailedException–The request failed because it depends on another request that failed.
-
RequestTimeoutException–The request reached the service more than 15 minutes after the date stamp on the request or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the date stamp on the request is more than 15 minutes in the future.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.
-
ThrottlingException–The throttling limit has been exceeded.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/async_q_connect.py
4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 | |