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
4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 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 | |