send_message
¶
send_message(
assistant_id: UuidOrArn,
session_id: UuidOrArn,
type: MessageType,
message: MessageInput,
*,
config_overrides: Optional[QConnectClientConfig] = 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/q_connect.py
4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 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 | |