Skip to content

AzureDynamicSessionTool

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:162

Azure Code Interpreter tool: A tool that allows you to interact with a dynamic session on Azure.

new AzureDynamicSessionTool(params?): AzureDynamicSessionTool

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:189

AzureDynamicSessionToolParams

AzureDynamicSessionTool

metadata: ToolMetadata

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:170

The metadata for the tool.

BaseTool.metadata

_buildUrl(path): string

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:203

string

string


uploadFile(params): Promise<RemoteFileMetadata>

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:219

Upload a file to the session under the path /mnt/data.

UploadFileMetadata

Promise<RemoteFileMetadata>

The remote file object. The list of metadatas for the uploaded files.


downloadFile(params): Promise<void | ReadableStream<any>>

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:250

Download a file from the session back to your local environment.

DownloadFileMetadata

Promise<void | ReadableStream<any>>

The file as a ReadableStream if no localFilename is provided. Otherwise, the file is saved to the localFilename.


listFiles(): Promise<RemoteFileMetadata[]>

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:294

List the files in the session.

Promise<RemoteFileMetadata[]>

The metadata for the files in the session


call(code): Promise<InterpreterToolOutput>

Defined in: .build/typescript/packages/providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:324

This tool is used to execute python commands when you need to perform calculations or computations in a Session. Input should be a valid python command. The tool returns the result, stdout, and stderr.

Pick<AzureDynamicSessionToolParams, "code">

Python code to be executed generated by llm.

Promise<InterpreterToolOutput>

The result, stdout, and stderr.

BaseTool.call