aws_sdk_bedrockagentcore/client/
invoke_code_interpreter.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`InvokeCodeInterpreter`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`code_interpreter_identifier(impl Into<String>)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::code_interpreter_identifier) / [`set_code_interpreter_identifier(Option<String>)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::set_code_interpreter_identifier):<br>required: **true**<br><p>The unique identifier of the code interpreter associated with the session. This must match the identifier used when creating the session with <code>StartCodeInterpreterSession</code>.</p><br>
7    ///   - [`session_id(impl Into<String>)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::set_session_id):<br>required: **false**<br><p>The unique identifier of the code interpreter session to use. This must be an active session created with <code>StartCodeInterpreterSession</code>. If the session has expired or been stopped, the request will fail.</p><br>
8    ///   - [`name(ToolName)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::name) / [`set_name(Option<ToolName>)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::set_name):<br>required: **true**<br><p>The name of the code interpreter to invoke.</p><br>
9    ///   - [`arguments(ToolArguments)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::arguments) / [`set_arguments(Option<ToolArguments>)`](crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::set_arguments):<br>required: **false**<br><p>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.</p><br>
10    /// - On success, responds with [`InvokeCodeInterpreterOutput`](crate::operation::invoke_code_interpreter::InvokeCodeInterpreterOutput) with field(s):
11    ///   - [`session_id(Option<String>)`](crate::operation::invoke_code_interpreter::InvokeCodeInterpreterOutput::session_id): <p>The identifier of the code interpreter session.</p>
12    ///   - [`stream(EventReceiver<CodeInterpreterStreamOutput, CodeInterpreterStreamOutputError>)`](crate::operation::invoke_code_interpreter::InvokeCodeInterpreterOutput::stream): <p>The stream containing the results of the code execution. This includes output, errors, and execution status.</p>
13    /// - On failure, responds with [`SdkError<InvokeCodeInterpreterError>`](crate::operation::invoke_code_interpreter::InvokeCodeInterpreterError)
14    pub fn invoke_code_interpreter(&self) -> crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder {
15        crate::operation::invoke_code_interpreter::builders::InvokeCodeInterpreterFluentBuilder::new(self.handle.clone())
16    }
17}