Executes code within an active code interpreter session in Amazon Bedrock AgentCore
Source:R/bedrockagentcore_operations.R
bedrockagentcore_invoke_code_interpreter.RdExecutes code within an active code interpreter session in Amazon Bedrock AgentCore. This operation processes the provided code, runs it in a secure environment, and returns the execution results including output, errors, and generated visualizations.
See https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_code_interpreter/ for full documentation.
Usage
bedrockagentcore_invoke_code_interpreter(
codeInterpreterIdentifier,
sessionId = NULL,
traceId = NULL,
traceParent = NULL,
name,
arguments = NULL
)Arguments
- codeInterpreterIdentifier
[required] The unique identifier of the code interpreter associated with the session. This must match the identifier used when creating the session with
start_code_interpreter_session.- sessionId
The unique identifier of the code interpreter session to use. This must be an active session created with
start_code_interpreter_session. If the session has expired or been stopped, the request will fail.- traceId
The trace identifier for request tracking.
- traceParent
The parent trace information for distributed tracing.
- name
[required] The name of the code interpreter to invoke.
- arguments
The arguments for the code interpreter. This includes the code to execute and any additional parameters such as the programming language, whether to clear the execution context, and other execution options. The structure of this parameter depends on the specific code interpreter being used.