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
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 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 | |