put_invocation_step
async
¶
put_invocation_step(
session_identifier: SessionIdentifier,
invocation_identifier: InvocationIdentifier,
invocation_step_time: DateTimestamp,
payload: InvocationStepPayload,
*,
config_overrides: Optional[AsyncBedrockAgentRuntimeClientConfig] = None,
invocation_step_id: Optional[Uuid] = None,
) -> PutInvocationStepResponse
Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.
Related APIs:
Parameters:
-
session_identifier(SessionIdentifier) –The unique identifier for the session to add the invocation step to. You can specify either the session's
sessionIdor its Amazon Resource Name (ARN). -
invocation_identifier(InvocationIdentifier) –The unique identifier (in UUID format) of the invocation to add the invocation step to.
-
invocation_step_time(DateTimestamp) –The timestamp for when the invocation step occurred.
-
payload(InvocationStepPayload) –The payload for the invocation step, including text and images for the interaction.
-
invocation_step_id(Optional[Uuid], default:None) –The unique identifier of the invocation step in UUID format.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions. Check your permissions and retry your request.
-
ConflictException–There was a conflict performing an operation. Resolve the conflict and retry your request.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agent_runtime/_services/async_bedrock_agent_runtime.py
2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 | |