Add an invocation step to an invocation in a session¶
Description¶
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:
Usage¶
bedrockagentruntime_put_invocation_step(invocationIdentifier,
invocationStepId, invocationStepTime, payload, sessionIdentifier)
Arguments¶
invocationIdentifier
[required] The unique identifier (in UUID format) of the invocation to add the invocation step to.
invocationStepId
The unique identifier of the invocation step in UUID format.
invocationStepTime
[required] The timestamp for when the invocation step occurred.
payload
[required] The payload for the invocation step, including text and images for the interaction.
sessionIdentifier
[required] The unique identifier for the session to add the invocation step to. You can specify either the session's sessionId or its Amazon Resource Name (ARN).
Value¶
A list with the following syntax:
Request syntax¶
svc$put_invocation_step(
invocationIdentifier = "string",
invocationStepId = "string",
invocationStepTime = as.POSIXct(
"2015-01-01"
),
payload = list(
contentBlocks = list(
list(
image = list(
format = "png"|"jpeg"|"gif"|"webp",
source = list(
bytes = raw,
s3Location = list(
uri = "string"
)
)
),
text = "string"
)
)
),
sessionIdentifier = "string"
)