AzureDynamicSessionTool
Defined in: 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.
Implements
BaseTool
<AzureDynamicSessionToolParams
>
Constructors
new AzureDynamicSessionTool()
new AzureDynamicSessionTool(
params
?):AzureDynamicSessionTool
Defined in: providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:189
Parameters
params?
Returns
Properties
metadata
metadata:
ToolMetadata
Defined in: providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:170
The metadata for the tool.
Implementation of
BaseTool.metadata
Methods
_buildUrl()
_buildUrl(
path
):string
Defined in: providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:203
Parameters
path
string
Returns
string
uploadFile()
uploadFile(
params
):Promise
<RemoteFileMetadata
>
Defined in: providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:219
Upload a file to the session under the path /mnt/data
.
Parameters
params
UploadFileMetadata
Returns
Promise
<RemoteFileMetadata
>
The remote file object. The list of metadatas for the uploaded files.
downloadFile()
downloadFile(
params
):Promise
<void
|ReadableStream
<any
>>
Defined in: providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:250
Download a file from the session back to your local environment.
Parameters
params
DownloadFileMetadata
Returns
Promise
<void
| ReadableStream
<any
>>
The file as a ReadableStream if no localFilename is provided. Otherwise, the file is saved to the localFilename.
listFiles()
listFiles():
Promise
<RemoteFileMetadata
[]>
Defined in: providers/storage/azure/src/tools/AzureDynamicSessionTool.node.ts:294
List the files in the session.
Returns
Promise
<RemoteFileMetadata
[]>
The metadata for the files in the session
call()
call(
code
):Promise
<InterpreterToolOutput
>
Defined in: 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.
Parameters
code
Pick
<AzureDynamicSessionToolParams
, "code"
>
Python code to be executed generated by llm.
Returns
Promise
<InterpreterToolOutput
>
The result, stdout, and stderr.
Implementation of
BaseTool.call