今すぐ始める
Code Interpreter Tools

Codeinterpreter Execute Code

Aident Loadout を通じて Code Interpreter Tools の Codeinterpreter Execute Code を使用します。実行前に入力、出力、設定、料金、リスクを確認できます。

書き込み Actionリスクレベル 2/5Aident 管理アクセス

プロバイダーの説明

Execute python code in a sandbox and return any result, stdout, stderr, and error. Use /home/user folder to write/read files. Try to not use plt.show() as the code is executed remotely. Use files for image/chart output instead.

料金と制限

料金
無料 Action
統合支払い
この無料 Action では不要

入力

  • timeoutinteger
    The timeout in seconds for the execution of the code.
  • keep_aliveinteger
    The number of seconds to keep the sandbox alive after execution. Default is 300 seconds (5 minutes). Can be between 0 and 3600.
  • sandbox_idstring
    The ID of the sandbox to execute the code in. Try to find an existing sandbox ID from context in order to access the previous modification session. In case not found, this value might be omitted, a new sandbox will be created.
  • code_to_executestring
    必須
    The python code to execute in a single cell. If a file is to be saved, it should be saved under /home/user/ directory. At the end of the code, a success message print is good to have.

確認できる出力

  • data
    必須
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必須
    Whether or not the action execution was successful or not

この Action を使用する Skills

関連ユースケース

検証済みの関連ユースケースはまだリンクされていません。

公式ソース

プロバイダーのソース