Skip to content

ToolArguments

Source code in docs_src/capo_bedrock_agentcore/types/tool_arguments.py
class ToolArguments(TypedDict, closed=True):
    code: NotRequired["capo_bedrock_agentcore.types.max_len_string.MaxLenString"]
    """<p>The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.</p>"""
    language: NotRequired[
        "capo_bedrock_agentcore.types.programming_language.ProgrammingLanguage"
    ]
    """<p>The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution.</p>"""
    clear_context: NotRequired["bool"]
    """<p>Whether to clear the context for the tool.</p>"""
    command: NotRequired["capo_bedrock_agentcore.types.max_len_string.MaxLenString"]
    """<p>The command to execute with the tool.</p>"""
    path: NotRequired["capo_bedrock_agentcore.types.max_len_string.MaxLenString"]
    """<p>The path for the tool operation.</p>"""
    paths: NotRequired["capo_bedrock_agentcore.types.string_list.StringList"]
    """<p>The paths for the tool operation.</p>"""
    content: NotRequired[
        "capo_bedrock_agentcore.types.input_content_block_list.InputContentBlockList"
    ]
    """<p>The content for the tool operation.</p>"""
    directory_path: NotRequired[
        "capo_bedrock_agentcore.types.max_len_string.MaxLenString"
    ]
    """<p>The directory path for the tool operation.</p>"""
    task_id: NotRequired["capo_bedrock_agentcore.types.max_len_string.MaxLenString"]
    """<p>The identifier of the task for the tool operation.</p>"""
    runtime: NotRequired[
        "capo_bedrock_agentcore.types.language_runtime.LanguageRuntime"
    ]
    """<p>The runtime environment to use for code execution. If not specified, defaults to <code>deno</code> for JavaScript and TypeScript.</p>"""

clear_context instance-attribute

clear_context: NotRequired[bool]

Whether to clear the context for the tool.

code instance-attribute

code: NotRequired[MaxLenString]

The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.

command instance-attribute

command: NotRequired[MaxLenString]

The command to execute with the tool.

content instance-attribute

content: NotRequired[InputContentBlockList]

The content for the tool operation.

directory_path instance-attribute

directory_path: NotRequired[MaxLenString]

The directory path for the tool operation.

language instance-attribute

language: NotRequired[ProgrammingLanguage]

The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution.

path instance-attribute

path: NotRequired[MaxLenString]

The path for the tool operation.

paths instance-attribute

paths: NotRequired[StringList]

The paths for the tool operation.

runtime instance-attribute

runtime: NotRequired[LanguageRuntime]

The runtime environment to use for code execution. If not specified, defaults to deno for JavaScript and TypeScript.

task_id instance-attribute

task_id: NotRequired[MaxLenString]

The identifier of the task for the tool operation.