put_invocation_step
¶
put_invocation_step(
session_identifier: SessionIdentifier,
invocation_identifier: InvocationIdentifier,
invocation_step_time: DateTimestamp,
payload: InvocationStepPayload,
*,
config_overrides: Optional[BedrockAgentRuntimeClientConfig] = 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/bedrock_agent_runtime.py
2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 | |